diff options
author | Andrew Gvozdev | 2010-04-07 13:51:38 +0000 |
---|---|---|
committer | Andrew Gvozdev | 2010-04-07 13:51:38 +0000 |
commit | 766aa21c74202e01f36884f84b8d83308901f381 (patch) | |
tree | 0bfb7e7abe86d610594fd520a3515dd54405e42f /xlc/org.eclipse.cdt.errorparsers.xlc.tests | |
parent | 00a7b4dfa4db5adcd16b03ac19f76c6dc1642507 (diff) | |
download | org.eclipse.cdt-766aa21c74202e01f36884f84b8d83308901f381.tar.gz org.eclipse.cdt-766aa21c74202e01f36884f84b8d83308901f381.tar.xz org.eclipse.cdt-766aa21c74202e01f36884f84b8d83308901f381.zip |
bug 308322: [Error Parser] XlcErrorParser shouldn't keep leading spaces in error description
Diffstat (limited to 'xlc/org.eclipse.cdt.errorparsers.xlc.tests')
11 files changed, 22 insertions, 22 deletions
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java index 8ede91fc8f7..47106f14dec 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -29,7 +29,7 @@ public class TestCompatibility extends TestCase { assertEquals("temp1.c", aix.getFileName()); assertEquals(5, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_INFO, aix.getSeverity()); - assertEquals(" Compatibility test",aix.getMessage()); + assertEquals("Compatibility test",aix.getMessage()); } public TestCompatibility( String name) { diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java index 442d232e587..83841bd6360 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestConditional.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -30,7 +30,7 @@ public class TestConditional extends TestCase { assertEquals("temp8.c", aix.getFileName()); assertEquals(12, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_INFO, aix.getSeverity()); - assertEquals(" The then branch of conditional is an empty statement.",aix.getMessage()); + assertEquals("The then branch of conditional is an empty statement.",aix.getMessage()); } public TestConditional( String name) { diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java index 811bd94f2a1..938cd2e27d1 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFloatingPoint.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -31,7 +31,7 @@ public class TestFloatingPoint extends TestCase { assertEquals("temp9.c", aix.getFileName()); assertEquals(11, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity()); - assertEquals(" Floating point constant 10.23.3 is not valid", + assertEquals("Floating point constant 10.23.3 is not valid", aix.getMessage()); } public TestFloatingPoint( String name) diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java index d8642a07418..3c7d2ab760c 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestFuncArg.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -30,7 +30,7 @@ public class TestFuncArg extends TestCase { assertEquals("temp9.c", aix.getFileName()); assertEquals(12, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity()); - assertEquals(" Function argument assignment between types " + + assertEquals("Function argument assignment between types " + "\"int\" and \"char*\" is not allowed.", aix.getMessage()); } diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMacroRedefinition.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMacroRedefinition.java index 11df2657eec..3409e8d35a1 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMacroRedefinition.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMacroRedefinition.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -29,7 +29,7 @@ public class TestMacroRedefinition extends TestCase { assertEquals("temp1.h", aix.getFileName()); assertEquals(3, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity()); - assertEquals(" Macro name TEMP_1 originally defined in file temp1.h",aix.getMessage()); + assertEquals("Macro name TEMP_1 originally defined in file temp1.h",aix.getMessage()); } public TestMacroRedefinition( String name) { diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java index 2983514e2a0..636a05b6753 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestMissingArg.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -31,7 +31,7 @@ public class TestMissingArg extends TestCase { assertEquals("temp8.c", aix.getFileName()); assertEquals(9, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity()); - assertEquals(" Missing argument(s).",aix.getMessage()); + assertEquals("Missing argument(s).",aix.getMessage()); } public TestMissingArg( String name) { diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java index 5a327681e3d..d3ee3c94cce 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestNoFuncProto.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -28,7 +28,7 @@ public class TestNoFuncProto extends TestCase { assertEquals("temp1.c", aix.getFileName()); assertEquals(5, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity()); - assertEquals(" No function prototype given for \"printf\".",aix.getMessage()); + assertEquals("No function prototype given for \"printf\".",aix.getMessage()); } public TestNoFuncProto( String name) { diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java index af301cfd7c6..554bcad010c 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestOperModi.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -30,7 +30,7 @@ public class TestOperModi extends TestCase { assertEquals("temp9.c", aix.getFileName()); assertEquals(13, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity()); - assertEquals(" Operand must be a modifiable lvalue.",aix.getMessage()); + assertEquals("Operand must be a modifiable lvalue.",aix.getMessage()); } public TestOperModi( String name) { diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java index 64a172b7ac5..2fc8bcd6ff7 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSyntaxError.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -29,7 +29,7 @@ public class TestSyntaxError extends TestCase { assertEquals("temp1.c", aix.getFileName()); assertEquals(5, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity()); - assertEquals(" Syntax error: possible missing ')'?",aix.getMessage()); + assertEquals("Syntax error: possible missing ')'?",aix.getMessage()); } public TestSyntaxError( String name) { diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java index 2c2dc4468bd..ac30e5f785c 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUndeclIdent.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -30,7 +30,7 @@ public class TestUndeclIdent extends TestCase { assertEquals("temp5.c", aix.getFileName()); assertEquals(5, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity()); - assertEquals(" Undeclared identifier y.",aix.getMessage()); + assertEquals("Undeclared identifier y.",aix.getMessage()); } public TestUndeclIdent( String name) { diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError.java index 5c3e26f0c0b..8ccbd80075c 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -29,7 +29,7 @@ public class TestUnrecoverableError extends TestCase { assertEquals("temp1.c", aix.getFileName()); assertEquals(5, aix.getLineNumber()); assertEquals(IMarkerGenerator.SEVERITY_ERROR_BUILD, aix.getSeverity()); - assertEquals(" INTERNAL COMPILER ERROR",aix.getMessage()); + assertEquals("INTERNAL COMPILER ERROR",aix.getMessage()); } public TestUnrecoverableError( String name) { |