GH-167: improve error message for unclosed function at EOF

This commit is contained in:
Jon Siwek 2019-01-24 14:54:39 -06:00
parent 30138dfbd0
commit 9b43f1d5f4
5 changed files with 52 additions and 11 deletions

View file

@ -0,0 +1,21 @@
# @TEST-EXEC-FAIL: bro -b a.bro >output1 2>&1
# @TEST-EXEC-FAIL: bro -b a.bro b.bro >output2 2>&1
# @TEST-EXEC: btest-diff output1
# @TEST-EXEC: btest-diff output2
@TEST-START-FILE a.bro
module A;
event bro_init()
{
print "a";
@TEST-END-FILE
@TEST-START-FILE b.bro
module B;
event bro_init()
{
print "b";
}
@TEST-END-FILE