summaryrefslogtreecommitdiff
path: root/test/baseline/opt-trace.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-12-24 19:17:33 -0600
committerJohn Wiegley <johnw@newartisans.com>2014-12-24 19:17:33 -0600
commitd88cf687d3b0fbfe1a7d9669f09cb9d36ec57e88 (patch)
tree5f58eb344204bfb0d62aee2408cfd999c1ca978f /test/baseline/opt-trace.test
parent30d58f68138b286412beec3e797c71ad25d49ddb (diff)
parentf1478851ee3b8581215e5a017a51f3352bb874bf (diff)
downloadfork-ledger-d88cf687d3b0fbfe1a7d9669f09cb9d36ec57e88.tar.gz
fork-ledger-d88cf687d3b0fbfe1a7d9669f09cb9d36ec57e88.tar.bz2
fork-ledger-d88cf687d3b0fbfe1a7d9669f09cb9d36ec57e88.zip
Merge pull request #346 from afh/pull/trace_level
Fix crash when using --trace 10 or above
Diffstat (limited to 'test/baseline/opt-trace.test')
-rw-r--r--test/baseline/opt-trace.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/baseline/opt-trace.test b/test/baseline/opt-trace.test
new file mode 100644
index 00000000..9034018e
--- /dev/null
+++ b/test/baseline/opt-trace.test
@@ -0,0 +1,15 @@
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+
+; Using values with two or more digits as the argument to the --trace option
+; resulted in a segmentation fault.
+; Since ledger prints debugging information to stderr when the --trace option
+; was given and that debugging information contains timing information, e.g. [1ms]
+; which is likely to differ on each test run, this test only checks that ledger
+; does not crash when the --trace options was specified.
+test reg --trace 10 2>/dev/null
+07-Feb-02 RD VMMXX As:Inves:Vanguar:VMMXX 0.350 VMMXX 0.350 VMMXX
+ In:Divid:Vanguar:VMMXX $-0.35 $-0.35
+ 0.350 VMMXX
+end test