mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix tail -F semantics when want_record=F and add tests for the new features
While writing a test for the new "tail -F semantics" I found that the $want_record=F case was broken (errno 25). So instead of opening /dev/null when the input file is missing change READER_RAW to avoid I/O until it can be opened. Add two tests, one for when the event handler is called with a record and one for when it's called with a string.
This commit is contained in:
parent
5954d9d36c
commit
44ba9138c2
5 changed files with 179 additions and 9 deletions
|
@ -0,0 +1,10 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
../input.log, Input::READER_RAW, Input::STREAM, input
|
||||
Input::EVENT_NEW
|
||||
sdfkh:KH;fdkncv;ISEUp34:Fkdj;YVpIODhfDF
|
||||
../input.log, Input::READER_RAW, Input::STREAM, input
|
||||
Input::EVENT_NEW
|
||||
DSF"DFKJ"SDFKLh304yrsdkfj@#(*U$34jfDJup3UF
|
||||
../input.log, Input::READER_RAW, Input::STREAM, input
|
||||
Input::EVENT_NEW
|
||||
3rw43wRRERLlL#RWERERERE.
|
Loading…
Add table
Add a link
Reference in a new issue