aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-15 23:11:17 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-15 23:11:17 +0000
commit6b834ab79bfb4640a64c3a4919c6b776b3c4436c (patch)
tree0345878ad77a8b92d1027bd43354c0fbade87600 /tests
parent35d9765b9aa38ef8b004204452baf9d63eb34154 (diff)
downloadprosody-6b834ab79bfb4640a64c3a4919c6b776b3c4436c.tar.gz
prosody-6b834ab79bfb4640a64c3a4919c6b776b3c4436c.zip
Warn when subtest function does not exist
Diffstat (limited to 'tests')
-rw-r--r--tests/test.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua
index c0a27abd..c028e859 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -71,6 +71,7 @@ function dotest(unitname)
end
function runtest(f, msg)
+ if not f then print("SUBTEST NOT FOUND: "..(msg or "(no description)")); return; end
local success, ret = pcall(f);
if success and verbosity >= 2 then
print("SUBTEST PASSED: "..(msg or "(no description)"));