From: Martin Quinson Date: Sun, 25 Sep 2016 22:43:47 +0000 (+0200) Subject: do not display a warning when running on AppVeyor -- sorry X-Git-Tag: v3_14~392 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4922ae19fcd975667006f354ec42f3beea61ac46 do not display a warning when running on AppVeyor -- sorry --- diff --git a/src/bindings/java/org/simgrid/NativeLib.java b/src/bindings/java/org/simgrid/NativeLib.java index 7929fc7dbf..11578d490b 100644 --- a/src/bindings/java/org/simgrid/NativeLib.java +++ b/src/bindings/java/org/simgrid/NativeLib.java @@ -164,9 +164,9 @@ public final class NativeLib { public void run() { try { for (File f : dir.listFiles()) - if (! f.delete() ) + if (! f.delete() && !f.getAbsolutePath().contains("appveyor")) // Be silent on AppVeyor to not break the tests. Ugly trick :) System.out.println("Unable to clean temporary file "+f.getAbsolutePath()+" during shutdown."); - if (! dir.delete() ) + if (! dir.delete() && !dir.getAbsolutePath().contains("appveyor") ) System.out.println("Unable to clean temporary file "+dir.getAbsolutePath()+" during shutdown."); } catch(Exception e) { System.out.println("Unable to clean temporary file "+dir.getAbsolutePath()+" during shutdown: "+e.getCause());