changeset 18115:523dd79ee726 stable

also check for xtest in __run_test_suite__ * __run_test_suite__.m (has_tests): Also return true for files that only contain %!xtest.
author John W. Eaton <jwe@octave.org>
date Fri, 06 Dec 2013 16:46:47 -0500
parents 0fa235a252a5
children a829f40933a8
files scripts/testfun/__run_test_suite__.m
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/testfun/__run_test_suite__.m	Fri Dec 06 16:39:56 2013 -0500
+++ b/scripts/testfun/__run_test_suite__.m	Fri Dec 06 16:46:47 2013 -0500
@@ -155,8 +155,9 @@
   if (fid >= 0)
     str = fread (fid, "*char")';
     fclose (fid);
-    retval = ! isempty (regexp (str, '^%!(assert|error|fail|test|warning)',
-                                     'lineanchors', 'once'));
+    retval = ! isempty (regexp (str,
+                                '^%!(assert|error|fail|test|xtest|warning)',
+                                'lineanchors', 'once'));
   else
     error ("fopen failed: %s", f);
   endif