summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2023-07-23 00:01:52 -0500
committerNico Williams <nico@cryptonector.com>2023-07-23 03:33:28 -0500
commitf64ef1a7d7836ee60fb277d49302661af630d6c1 (patch)
tree8b68318f115e3d2db9ee4026e798a9a48bb2d441 /tests
parent123c78060773844866b964a67c6c21760aa9f701 (diff)
Fix --stream-errors w/o --stream, and doc+test (close #2748)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/shtest5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shtest b/tests/shtest
index b2b8571d..1ee84d3a 100755
--- a/tests/shtest
+++ b/tests/shtest
@@ -180,6 +180,11 @@ $VALGRIND $Q $JQ -c '. as $d|path(..) as $p|$d|getpath($p)|select((type|. != "ar
$VALGRIND $Q $JQ --stream -c '.|select(length==2)' < "$JQTESTDIR/torture/input0.json" > $d/out1
diff $d/out0 $d/out1
+printf '["Unfinished JSON term at EOF at line 1, column 1",[0]]\n' > $d/expected
+printf '[' | $VALGRIND $Q $JQ --stream-errors -c . > $d/out 2>&1
+diff $d/out $d/expected
+
+
## XXX This test can be moved to tests/all.test _now_
clean=false
if which seq > /dev/null 2>&1; then