diff test/fntests.m @ 13069:48c94e21b57f

codesprint: recognize "fail" as a test in fntests.m * fntests.m (has_tests): Also look for "fail".
author John W. Eaton <jwe@octave.org>
date Sat, 03 Sep 2011 15:24:44 -0400
parents b37d8e5aedf3
children 968e89b45bbf
line wrap: on
line diff
--- a/test/fntests.m
+++ b/test/fntests.m
@@ -91,7 +91,7 @@
   if (fid >= 0)
     str = fread (fid, "*char")';
     fclose (fid);
-    retval = ! isempty (regexp (str, '^%!(test|assert|error|warning)', "lineanchors"));
+    retval = ! isempty (regexp (str, '^%!(assert|error|fail|test|warning)', "lineanchors"));
   else
     error ("fopen failed: %s", f);
   endif