input/Raw: Avoid reading file twice in MODE_REREAD

Found while writing documentation and being confused why
all lines and end_of_data() arrive twice during startup.

The test is a bit fuzzy, but does fail reliably without
the changes to Raw.cc

Also fix not checking dev in the MODE_REREAD path.

Closes #3053
This commit is contained in:
Arne Welzel 2023-05-17 20:55:06 +02:00
parent 3b28f59c3b
commit d8b5bdf758
3 changed files with 76 additions and 2 deletions

View file

@ -0,0 +1,8 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
A::line, 1, First, 5
A::line, 2, Second, 6
A::line, 3, Third, 5
A::line, 4, , 0
A::line, 5, Fourth, 6
end_of_data, input, ./input.log
terminate