mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
GH-1041: Move compress_path to a bif that uses normalize_path
This commit is contained in:
parent
3d3d5e7eb4
commit
560ee0c05e
4 changed files with 22 additions and 39 deletions
2
testing/btest/Baseline/bifs.compress_path/out
Normal file
2
testing/btest/Baseline/bifs.compress_path/out
Normal file
|
@ -0,0 +1,2 @@
|
|||
../foo
|
||||
../foo
|
9
testing/btest/bifs/compress_path.zeek
Normal file
9
testing/btest/bifs/compress_path.zeek
Normal file
|
@ -0,0 +1,9 @@
|
|||
#
|
||||
# @TEST-EXEC: zeek -b %INPUT >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
print compress_path("./../foo");
|
||||
print compress_path("././../foo");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue