Bad name for searched library + less verbose

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12384 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vincent Couvert 2011-01-10 10:32:48 +00:00
commit b3220fe33f

View file

@ -5,10 +5,8 @@ lines(0);
swigtestname = strsubst(fileparts(names, "fname"), "_runme", "");
// Does the library exists? If not then exit!
if ~isfile("lib" + fileparts(names, "fname") + "lib" + getdynlibext()) then
mprintf("**************************\n")
mprintf("* LIBRARY DOES NOT EXIST *\n");
mprintf("**************************\n")
if ~isfile("lib" + swigtestname + "lib" + getdynlibext()) then
mprintf("*** LIBRARY NOT FOUND: %s ***\n", "lib" + swigtestname + "lib" + getdynlibext());
exit
end
@ -16,16 +14,12 @@ end
try
exec("loader.sce", -1);
catch
mprintf("***************************\n")
mprintf("* LOADER EXECUTION FAILED *\n");
mprintf("***************************\n")
mprintf("*** LOADER EXECUTION FAILED ***\n");
exit
end
// Error management function
function swigtesterror()
mprintf("***************\n")
mprintf("* TEST FAILED *\n")
mprintf("***************\n")
mprintf("*** TEST FAILED ***\n")
exit
endfunction