From 9a0ac2fa592f53810a99bc030a69a75e1843bc17 Mon Sep 17 00:00:00 2001 From: Vincent Couvert Date: Tue, 4 Jan 2011 15:52:24 +0000 Subject: [PATCH] Add a test for library existence git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12365 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/scilab/swigtest.start | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Examples/test-suite/scilab/swigtest.start b/Examples/test-suite/scilab/swigtest.start index bb0615b58..b00a9a875 100644 --- a/Examples/test-suite/scilab/swigtest.start +++ b/Examples/test-suite/scilab/swigtest.start @@ -4,6 +4,14 @@ lines(0); [units, typ, names] = file(1); 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") + exit +end + // Load library try exec("loader.sce", -1);