Fix the test, it was breaking under distro based built 36/12736/2
Sylvestre Ledru [Sun, 29 Sep 2013 10:33:07 +0000 (12:33 +0200)]
Change-Id: I42a3aef400dc20494054c1685967cd1d19a419d3

scilab/modules/external_objects_java/tests/unit_tests/ecjclasspath.sce

index d704c53..bee3162 100644 (file)
@@ -7,9 +7,9 @@
 
 // Add ecj to classpath if needed
 if getos()<>"Windows" then
-    if isdir(SCI + "/thirdparty/") then
+    if isdir(SCI + "/thirdparty/") & isfile(SCI + "/thirdparty/ecj.jar") then
         javaclasspath(SCI + "/thirdparty/ecj.jar"); // Source version
-    elseif isdir(SCI + "/../../thirdparty/") then
+    elseif isdir(SCI + "/../../thirdparty/") & isfile(SCI + "/../../thirdparty/ecj.jar") then
         javaclasspath(SCI + "/../../thirdparty/ecj.jar"); // Binary version
     end
 end