mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
GH-167: improve error message for unclosed function at EOF
This commit is contained in:
parent
30138dfbd0
commit
9b43f1d5f4
5 changed files with 52 additions and 11 deletions
21
testing/btest/language/eof-parse-errors.bro
Normal file
21
testing/btest/language/eof-parse-errors.bro
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue