diff scripts/testfun/test.m @ 10615:08050f37ba49

Don't abort testing when merely skipping a testif block. Previously, test.m counted skipping a testif block as an error which stopped testing. This is not necessary and prevents testing a file which contains a mixture of test blocks only some of which are protected by testif clauses.
author Rik <octave@nomad.inbox5.com>
date Sat, 08 May 2010 10:29:39 -0700
parents 95c3e38098bf
children d1978e7364ad
line wrap: on
line diff
--- a/scripts/testfun/test.m	Sat May 08 15:15:22 2010 +0200
+++ b/scripts/testfun/test.m	Sat May 08 10:29:39 2010 -0700
@@ -447,10 +447,8 @@
       [__e, __feat] = regexp (__code, '^\s*([^\s]+)', 'end', 'tokens');
       if (isempty (findstr (octave_config_info ("DEFS"), __feat{1}{1})))
         __xskip++;
-        __success = 0;
         __istest = 0;
-        ## Skip the code.
-        __code = "";
+        __code = ""; # Skip the code.
         __msg = sprintf ("%sskipped test\n", __signal_skip);
       else
         __istest = 1;