aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-12-26 23:48:20 +1030
committerMark Pulford <mark@kyne.com.au>2011-12-26 23:48:20 +1030
commit7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8 (patch)
treeee21689e04d8084f1c9ae62a795d2787b070e086
parente7d9c166ff7fee61b554dd5d7bba8985ee777ee8 (diff)
downloadlua-cjson-7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8.tar.gz
lua-cjson-7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8.tar.bz2
lua-cjson-7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8.zip
Display failed test count (test.lua)
-rwxr-xr-xtests/test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 90d216c..6a1a8a2 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -247,7 +247,7 @@ end
247 247
248local pass, total = run_test_summary() 248local pass, total = run_test_summary()
249 249
250print(string.format("==> Summary: %d/%d tests succeeded", pass, total)) 250print(string.format("==> Summary: %d/%d tests failed", total - pass, total))
251 251
252if pass ~= total then 252if pass ~= total then
253 os.exit(1) 253 os.exit(1)