From: aclement Date: Wed, 17 Oct 2007 08:15:36 +0000 (+0000) Subject: tests update so works ok on mac/linux X-Git-Tag: V1_5_4rc1~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8890217addb4b53ecb2728376917c68d952f94c2;p=aspectj.git tests update so works ok on mac/linux --- diff --git a/ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java b/ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java index 4bcd6d1af..d634dcd2b 100644 --- a/ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java +++ b/ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java @@ -254,8 +254,8 @@ public class InpathTests extends AjdeCoreTestCase { try { assertTrue( - "outjar older than injar", - (outjarFile.lastModified() > dirFile.lastModified())); + "outjar older than injar: outjarLastMod="+outjarFile.lastModified()+" injarLastMod="+dirFile.lastModified(), + (outjarFile.lastModified() >= dirFile.lastModified())); // Go through the output jar file, for each element, remove it from // the expectedOutputJarContents - when we finish, the expectedOutputJarContents diff --git a/ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java b/ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java index 84f21a405..422e194e0 100644 --- a/ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java +++ b/ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java @@ -201,7 +201,9 @@ public class ResourceCopyTests extends AjdeCoreTestCase { HashSet resources = new HashSet(); try { - assertTrue("outjar older than injar",(outjarFile.lastModified() > injarFile.lastModified())); + assertTrue( + "outjar older than injar: outjarLastMod="+outjarFile.lastModified()+" injarLastMod="+injarFile.lastModified(), + (outjarFile.lastModified() >= injarFile.lastModified())); byte[] inManifest = listJarResources(injarFile,resources); listSourceResources(indirName,resources);