From 75f54f592d7a8443ff76dee0034c99e70514519d Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 9 Apr 2009 04:29:45 +0000 Subject: [PATCH] enable positional check to pass on linux --- tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java b/tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java index 44dd8c9ac..d313400a0 100644 --- a/tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc165/Ajc165Tests.java @@ -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; } } -- 2.39.5