]> source.dussan.org Git - aspectj.git/commitdiff
enable positional check to pass on linux
authoraclement <aclement>
Thu, 9 Apr 2009 04:29:45 +0000 (04:29 +0000)
committeraclement <aclement>
Thu, 9 Apr 2009 04:29:45 +0000 (04:29 +0000)
tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java

index 44dd8c9ac3833557e3f58f660fc4302e5aea41b8..d313400a07e51c8c8f5481b85a3fe8f4d7fefbee 100644 (file)
@@ -28,8 +28,13 @@ public class Ajc165Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
                for (int i = 0; i < ms.size(); i++) {
                        LintMessage m = (LintMessage) ms.get(i);
                        if (m.toString().indexOf("List") != -1) {
-                               assertEquals(237, m.getSourceStart());
-                               assertEquals(240, m.getSourceEnd());
+                               // 225/228 on windows - 237/240 on linux
+                               if (!(m.getSourceStart() == 225 || m.getSourceStart() == 237)) {
+                                       fail("Did not get expected start position, was:" + m.getSourceStart());
+                               }
+                               if (!(m.getSourceEnd() == 228 || m.getSourceEnd() == 240)) {
+                                       fail("Did not get expected end position, was:" + m.getSourceEnd());
+                               }
                                checked = true;
                        }
                }