Mercurial > octave
diff scripts/testfun/rundemos.m @ 21570:faa23d2161f8
Stricter input validation for rundemos, runtests.
* rundemos.m: Check that input is definitely a directory.
* runtests.m: Check that input is definitely a directory.
Change output to distinguish between true FAIL tests and XFAIL tests.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 31 Mar 2016 12:46:59 -0700 |
parents | 516bb87ea72e |
children | dcf8922b724b |
line wrap: on
line diff
--- a/scripts/testfun/rundemos.m Thu Mar 31 08:57:06 2016 -0700 +++ b/scripts/testfun/rundemos.m Thu Mar 31 12:46:59 2016 -0700 @@ -38,7 +38,7 @@ do_class_dirs = true; elseif (nargin == 1) dirs = {canonicalize_file_name(directory)}; - if (isempty (dirs{1})) + if (isempty (dirs{1}) || ! isdir (dirs{1})) ## Search for directory name in path if (directory(end) == '/' || directory(end) == '\') directory(end) = [];