Mercurial > hg > octave-nkf
changeset 17458:f0ecb52097ec
runtests.m: Also look for DEFUNX macro in .cc files to indicate function.
* scripts/testfun/runtests.m: Also look for DEFUNX macro in .cc files to
indicate function.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 22 Sep 2013 08:00:00 -0700 |
parents | a4f86f459744 |
children | f271fa40074d |
files | scripts/testfun/runtests.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/testfun/runtests.m +++ b/scripts/testfun/runtests.m @@ -108,7 +108,7 @@ if (fid >= 0) str = fread (fid, "*char")'; fclose (fid); - retval = ! isempty (regexp (str,'^(DEFUN|DEFUN_DLD)\>', + retval = ! isempty (regexp (str,'^(DEFUN|DEFUN_DLD|DEFUNX)\>', 'lineanchors', 'once')); else error ("fopen failed: %s", f); @@ -126,7 +126,7 @@ str = fread (fid, "*char").'; fclose (fid); retval = ! isempty (regexp (str, '^%!(?:test|assert|error|warning)', - "lineanchors", "once")); + 'lineanchors', 'once')); else error ("runtests: fopen failed: %s", f); endif