]> source.dussan.org Git - aspectj.git/commitdiff
tests update so works ok on mac/linux
authoraclement <aclement>
Wed, 17 Oct 2007 08:15:36 +0000 (08:15 +0000)
committeraclement <aclement>
Wed, 17 Oct 2007 08:15:36 +0000 (08:15 +0000)
ajde.core/testsrc/org/aspectj/ajde/core/tests/InpathTests.java
ajde.core/testsrc/org/aspectj/ajde/core/tests/ResourceCopyTests.java

index 4bcd6d1afe98df43294c723da12ead3cbea3582f..d634dcd2b1c0fc7f7878c93b732a5272e6f1131d 100644 (file)
@@ -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
index 84f21a4054dc528f76d434f12bb2efec0cbc1ff7..422e194e0c5cb000d58842d34b16031c30f8463f 100644 (file)
@@ -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);