diff options
author | Mark Pulford <mark@kyne.com.au> | 2011-12-26 23:48:20 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2011-12-26 23:48:20 +1030 |
commit | 7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8 (patch) | |
tree | ee21689e04d8084f1c9ae62a795d2787b070e086 | |
parent | e7d9c166ff7fee61b554dd5d7bba8985ee777ee8 (diff) | |
download | lua-cjson-7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8.tar.gz lua-cjson-7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8.tar.bz2 lua-cjson-7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8.zip |
Display failed test count (test.lua)
-rwxr-xr-x | tests/test.lua | 2 |
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 | ||
248 | local pass, total = run_test_summary() | 248 | local pass, total = run_test_summary() |
249 | 249 | ||
250 | print(string.format("==> Summary: %d/%d tests succeeded", pass, total)) | 250 | print(string.format("==> Summary: %d/%d tests failed", total - pass, total)) |
251 | 251 | ||
252 | if pass ~= total then | 252 | if pass ~= total then |
253 | os.exit(1) | 253 | os.exit(1) |