Skip to main content
summaryrefslogtreecommitdiffstats
path: root/xlc
diff options
context:
space:
mode:
authorAndrew Gvozdev2010-09-30 12:17:04 -0400
committerAndrew Gvozdev2010-09-30 12:17:04 -0400
commit9ea2234d1194eef3715a1289073c42a8185581b3 (patch)
tree913b7b06a1d15c6df8a3a7f29cc2eaf70e3f53f2 /xlc
parent879ed6c25f56d62e7f65cf81c908225e9b2e73a0 (diff)
downloadorg.eclipse.cdt-9ea2234d1194eef3715a1289073c42a8185581b3.tar.gz
org.eclipse.cdt-9ea2234d1194eef3715a1289073c42a8185581b3.tar.xz
org.eclipse.cdt-9ea2234d1194eef3715a1289073c42a8185581b3.zip
bug 323445: Generate cross linked message for redeclaration xlc error
Diffstat (limited to 'xlc')
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java
index 134d4a5196..22646f9cf3 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java
@@ -24,17 +24,17 @@ public class TestRedeclaration extends TestCase {
public void testparseLine()
{
XlcErrorParserTester aix = new XlcErrorParserTester();
- // Redeclaration warning generates 2 cross-referencing messages.
- String err_msg = "\"src/temp1.c\", line 6.6: 1506-343 (S) Redeclaration of fun differs from previous declaration on line 334 of \"include/temp1.h\".";
+ // Redeclaration error generates 2 cross-referencing messages.
+ String err_msg = "\"src/temp1.c\", line 6.6: 1506-343 (S) Redeclaration of my_fun differs from previous declaration on line 334 of \"include/temp1.h\".";
aix.parseLine(err_msg);
assertEquals(2, aix.getNumberOfMarkers());
- assertEquals("Redeclaration of fun differs from another declaration on line 6 of \"src/temp1.c\".", aix.getMessage(0));
+ assertEquals("Redeclaration of my_fun differs from another declaration on line 6 of \"src/temp1.c\".", aix.getMessage(0));
assertEquals("temp1.h", aix.getFileName(0));
assertEquals(334, aix.getLineNumber(0));
- assertEquals(IMarkerGenerator.SEVERITY_INFO, aix.getSeverity(0));
+ assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Redeclaration of fun differs from previous declaration on line 334 of \"include/temp1.h\".", aix.getMessage(1));
+ assertEquals("Redeclaration of my_fun differs from previous declaration on line 334 of \"include/temp1.h\".", aix.getMessage(1));
assertEquals("temp1.c", aix.getFileName(1));
assertEquals(6, aix.getLineNumber(1));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(1));

Back to the top