diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-15 23:11:17 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-15 23:11:17 +0000 |
commit | 6b834ab79bfb4640a64c3a4919c6b776b3c4436c (patch) | |
tree | 0345878ad77a8b92d1027bd43354c0fbade87600 /tests/test.lua | |
parent | 35d9765b9aa38ef8b004204452baf9d63eb34154 (diff) | |
download | prosody-6b834ab79bfb4640a64c3a4919c6b776b3c4436c.tar.gz prosody-6b834ab79bfb4640a64c3a4919c6b776b3c4436c.zip |
Warn when subtest function does not exist
Diffstat (limited to 'tests/test.lua')
-rw-r--r-- | tests/test.lua | 1 |
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)")); |