Commit Diff


commit - 3a5d9be4125c991c05964e2ce88b66fcba21793e
commit + 755f48e211afb6453473a18ff349bef71f8eef80
blob - /dev/null
blob + 8fe743e0170a78caacbb9fa0f752bf2407802171 (mode 755)
--- /dev/null
+++ tests/exercise/testsuite/shortcount.t
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# if a test suite exits early, the 'run' counter may remain greater than
+# the sum of the others.
+
+export tst=$0.tests
+exec ./assert-exercise $0 \
+        "run 22  ok 10  fail 1  error 0\n" \
+        "test test test\n" <<EOF
+#!/bin/sh
+    echo 'test test test' >&2
+    echo 'run 22  ok 10  fail 1  error 0'
+    exit 0
+EOF