diff --git a/testing/btest/Baseline/coverage.zeek-profiler-file/step1.out b/testing/btest/Baseline/coverage.zeek-profiler-file/step1.out index e9b69cafea..baee8e49bd 100644 --- a/testing/btest/Baseline/coverage.zeek-profiler-file/step1.out +++ b/testing/btest/Baseline/coverage.zeek-profiler-file/step1.out @@ -1,3 +1,5 @@ ### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. 1 ./profiling-test1.zeek, line 2 print new conn; +0 ./profiling-test1.zeek, line 6 print hidden new conn; 1 ./profiling-test1.zeek, lines 1-2 event new_connection BODY +0 ./profiling-test1.zeek, lines 5-6 event new_connection BODY diff --git a/testing/btest/Baseline/coverage.zeek-profiler-file/step2.out b/testing/btest/Baseline/coverage.zeek-profiler-file/step2.out index 62505a3666..8ab2229047 100644 --- a/testing/btest/Baseline/coverage.zeek-profiler-file/step2.out +++ b/testing/btest/Baseline/coverage.zeek-profiler-file/step2.out @@ -1,3 +1,5 @@ ### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. 2 ./profiling-test1.zeek, line 2 print new conn; +0 ./profiling-test1.zeek, line 6 print hidden new conn; 2 ./profiling-test1.zeek, lines 1-2 event new_connection BODY +0 ./profiling-test1.zeek, lines 5-6 event new_connection BODY diff --git a/testing/btest/Baseline/coverage.zeek-profiler-file/step3.out b/testing/btest/Baseline/coverage.zeek-profiler-file/step3.out index 7e37b66ce2..0d1aff1265 100644 --- a/testing/btest/Baseline/coverage.zeek-profiler-file/step3.out +++ b/testing/btest/Baseline/coverage.zeek-profiler-file/step3.out @@ -1,5 +1,9 @@ ### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. 2 ./profiling-test1.zeek, line 2 print new conn; +0 ./profiling-test1.zeek, line 6 print hidden new conn; 2 ./profiling-test1.zeek, lines 1-2 event new_connection BODY +0 ./profiling-test1.zeek, lines 5-6 event new_connection BODY 1 ./profiling-test2.zeek, line 2 print new conn; +0 ./profiling-test2.zeek, line 6 print hidden new conn; 1 ./profiling-test2.zeek, lines 1-2 event new_connection BODY +0 ./profiling-test2.zeek, lines 5-6 event new_connection BODY diff --git a/testing/btest/coverage/zeek-profiler-file.zeek b/testing/btest/coverage/zeek-profiler-file.zeek index 05f2845fa5..83ca8d0bb1 100644 --- a/testing/btest/coverage/zeek-profiler-file.zeek +++ b/testing/btest/coverage/zeek-profiler-file.zeek @@ -15,9 +15,19 @@ @TEST-START-FILE profiling-test1.zeek event new_connection(c: connection) { print "new conn"; } + +@if ( F ) &analyze +event new_connection(c: connection) + { print "hidden new conn"; } +@endif @TEST-END-FILE @TEST-START-FILE profiling-test2.zeek event new_connection(c: connection) { print "new conn"; } + +@if ( F ) &analyze +event new_connection(c: connection) + { print "hidden new conn"; } +@endif @TEST-END-FILE