From 6b834ab79bfb4640a64c3a4919c6b776b3c4436c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 15 Nov 2008 23:11:17 +0000 Subject: Warn when subtest function does not exist --- tests/test.lua | 1 + 1 file changed, 1 insertion(+) 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)")); -- cgit v1.2.3