Mercurial > octave-nkf
diff scripts/testfun/test.m @ 12447:890e89c3dfeb
More explicit error message when source with tests for dynamically linked functions not found (#30341)
author | David Bateman <dbateman@free.fr> |
---|---|
date | Tue, 15 Feb 2011 01:28:11 +0100 |
parents | c792872f8942 |
children | 55430618bd5f |
line wrap: on
line diff
--- a/scripts/testfun/test.m Tue Feb 15 00:42:05 2011 +0100 +++ b/scripts/testfun/test.m Tue Feb 15 01:28:11 2011 +0100 @@ -173,7 +173,11 @@ __ret1 = ""; __ret2 = []; else - fprintf (__fid, "%s%s does not exist in path\n", __signal_empty, __name); + if (exist (__name) == 3) + fprintf (__fid, "%s%s source code with tests for dynamically linked function not found\n", __signal_empty, __name); + else + fprintf (__fid, "%s%s does not exist in path\n", __signal_empty, __name); + endif fflush (__fid); if (nargout > 0) __ret1 = __ret2 = 0;