zeek/testing/btest/bifs/file_mode.zeek
Robin Sommer 789cb376fd GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev.
This also installs symlinks from "zeek" and "bro-config" to a wrapper
script that prints a deprecation warning.

The btests pass, but this is still WIP. broctl renaming is still
missing.

#239
2019-05-01 21:43:45 +00:00

36 lines
560 B
Text

#
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init()
{
local a = 420; # octal: 0644
print file_mode(a);
a = 511; # octal: 0777
print file_mode(a);
a = 1023; # octal: 01777
print file_mode(a);
a = 1000; # octal: 01750
print file_mode(a);
a = 2541; # octal: 04755
print file_mode(a);
a = 2304; # octal: 04400
print file_mode(a);
a = 1517; # octal: 02755
print file_mode(a);
a = 1312; # octal: 02440
print file_mode(a);
a = 111; # octal: 0157
print file_mode(a);
a = 0;
print file_mode(a);
}