mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
20 lines
358 B
Text
20 lines
358 B
Text
#
|
|
# @TEST-EXEC: TESTBRO=testvalue bro %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event bro_init()
|
|
{
|
|
local a = getenv("NOTDEFINED");
|
|
local b = getenv("TESTBRO");
|
|
if ( |a| == 0 )
|
|
print "OK";
|
|
if ( b == "testvalue" )
|
|
print "OK";
|
|
|
|
if ( setenv("NOTDEFINED", "now defined" ) == T )
|
|
{
|
|
if ( getenv("NOTDEFINED") == "now defined" )
|
|
print "OK";
|
|
}
|
|
|
|
}
|