diff options
author | Johann Klähn <kljohann@gmail.com> | 2013-01-08 23:20:08 +0100 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2013-01-15 23:03:39 +0100 |
commit | 0a1ff035421d5f97675ad769a7fcdbc68399f3dc (patch) | |
tree | 4428c1373ad3c9941c21cb613d56768d8194a0b3 /test/regress/BF3C1F82.test | |
parent | a633bc7fcedfecb0da557a19866e6e9bca131e6a (diff) | |
download | fork-ledger-0a1ff035421d5f97675ad769a7fcdbc68399f3dc.tar.gz fork-ledger-0a1ff035421d5f97675ad769a7fcdbc68399f3dc.tar.bz2 fork-ledger-0a1ff035421d5f97675ad769a7fcdbc68399f3dc.zip |
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.
Diffstat (limited to 'test/regress/BF3C1F82.test')
-rw-r--r-- | test/regress/BF3C1F82.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/regress/BF3C1F82.test b/test/regress/BF3C1F82.test new file mode 100644 index 00000000..8d465f4d --- /dev/null +++ b/test/regress/BF3C1F82.test @@ -0,0 +1,12 @@ +; 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 |