diff options
author | aclement <aclement> | 2007-10-17 08:15:36 +0000 |
---|---|---|
committer | aclement <aclement> | 2007-10-17 08:15:36 +0000 |
commit | 8890217addb4b53ecb2728376917c68d952f94c2 (patch) | |
tree | bfc73013ae5f0d64dec53786aeb228ea686e5569 /ajde.core/testsrc | |
parent | 74a20b680b956b3376812af81cc200fa82b1a46b (diff) | |
download | aspectj-8890217addb4b53ecb2728376917c68d952f94c2.tar.gz aspectj-8890217addb4b53ecb2728376917c68d952f94c2.zip |
tests update so works ok on mac/linux
Diffstat (limited to 'ajde.core/testsrc')
-rw-r--r-- | ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java | 4 | ||||
-rw-r--r-- | ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java | 4 |
2 files changed, 5 insertions, 3 deletions
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); |