ledger/test/regress/BF3C1F82.test
Johann Klähn 0a1ff03542 fix bug 788: behaviour of source_context for '-f -'
`session_t::read_data` did not set context.pathname to `/dev/stdin`
for the special case `-f -`. I chose to adjust `source_context` too
as there is no sensible context if no file name is provided.
2013-01-15 23:03:39 +01:00

12 lines
245 B
Text

; Check that error reporting works for "-f -"
2012/02/30 * Test
a 1
b
test -f - reg -> 1
__ERROR__
While parsing file "/dev/stdin", line 3:
While parsing transaction:
<no source context>
Error: Day of month is not valid for year
end test