Improve unit test for reporter shutdown order

This commit is contained in:
Jon Siwek 2019-01-15 10:30:06 -06:00
parent ed1a50ec5b
commit 12f3ab303b
4 changed files with 9 additions and 5 deletions

View file

@ -1,4 +1,8 @@
2.6-75 | 2019-01-15 10:30:06 -0600
* GH-213: change type of vector for-loop index to a count (Jon Siwek, Corelight)
2.6-71 | 2019-01-14 16:11:58 -0600 2.6-71 | 2019-01-14 16:11:58 -0600
* GH-205: prioritize use of sigaction() over sigset() (Jon Siwek, Corelight) * GH-205: prioritize use of sigaction() over sigset() (Jon Siwek, Corelight)

View file

@ -1 +1 @@
2.6-71 2.6-75

View file

@ -1,3 +0,0 @@
warning: ./config/Input::READER_CONFIG: Init: cannot open ./config
error: reporter/Log::WRITER_ASCII: cannot open reporter.log: Permission denied
error: reporter/Log::WRITER_ASCII: terminating thread

View file

@ -1,6 +1,9 @@
# @TEST-EXEC: touch reporter.log && chmod -w reporter.log # @TEST-EXEC: touch reporter.log && chmod -w reporter.log
# @TEST-EXEC: bro %INPUT >out 2>&1 # @TEST-EXEC: bro %INPUT >out 2>&1
# @TEST-EXEC: btest-diff out
# Output doesn't really matter, but we just want to know that Bro shutdowns
# without crashing in such scenarios (reporter log not writable
# and also reporter errors being emitting during shutdown).
redef Config::config_files += { "./config" }; redef Config::config_files += { "./config" };