mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
bug 314253: Linker warning not recognized
Based on work from Axel Mueller
This commit is contained in:
parent
fb1eb3faed
commit
0dd48245de
3 changed files with 29 additions and 4 deletions
|
@ -112,4 +112,29 @@ public class GLDErrorParserTests extends GenericErrorParserTests {
|
|||
new String[] {GLD_ERROR_PARSER_ID}
|
||||
);
|
||||
}
|
||||
|
||||
public void testLinkerMessages_PrecedingPath_bug314253() throws IOException {
|
||||
runParserTest(
|
||||
new String[] {
|
||||
"ld: warning: libstdc++.so.5, needed by testlib_1.so, may conflict with libstdc++.so.6",
|
||||
"/usr/bin/ld: warning: libstdc++.so.5, needed by testlib_2.so, may conflict with libstdc++.so.6",
|
||||
"C:\\bin\\ld.exe: warning: libstdc++.so.5, needed by testlib_3.so, may conflict with libstdc++.so.6",
|
||||
"c:/bin/ld.exe: warning: libstdc++.so.5, needed by testlib_4.so, may conflict with libstdc++.so.6",
|
||||
"D:\\mingw\\bin\\..\\lib\\gcc-lib\\mingw32\\3.2.3\\..\\..\\..\\..\\mingw32\\bin\\ld.exe: cannot find -ljpeg",
|
||||
"notld: warning: ld error parser has no business parsing this message",
|
||||
},
|
||||
1, // errors
|
||||
4, // warnings
|
||||
0, // Infos
|
||||
null,
|
||||
new String[] {
|
||||
"libstdc++.so.5, needed by testlib_1.so, may conflict with libstdc++.so.6",
|
||||
"libstdc++.so.5, needed by testlib_2.so, may conflict with libstdc++.so.6",
|
||||
"libstdc++.so.5, needed by testlib_3.so, may conflict with libstdc++.so.6",
|
||||
"libstdc++.so.5, needed by testlib_4.so, may conflict with libstdc++.so.6",
|
||||
"cannot find -ljpeg",
|
||||
},
|
||||
new String[] {GLD_ERROR_PARSER_ID}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,8 +64,8 @@ CDTGNULinkerErrorParser.regex.InFunction=(.*?):?(\\(\\.\\w+\\+.*\\))?:\\s*(In fu
|
|||
CDTGNULinkerErrorParser.regex.WarningDangerousFunction=(.*?):(\\d+):(\\d+:)? ([Ww]arning:)?\\s*(the use of [`'"](.*)['"] is dangerous, better use [`'"](.*)['"].*)
|
||||
CDTGNULinkerErrorParser.regex.TextWarning=(.*?):?\\(\\.\\w+\\+.*\\): [Ww]arning:? (.*)
|
||||
CDTGNULinkerErrorParser.regex.TextError=(.*?):?\\(\\.\\w+\\+.*\\): (.*)
|
||||
CDTGNULinkerErrorParser.regex.ldWarning=ld(\\.exe)?: [Ww]arning:? (.*)
|
||||
CDTGNULinkerErrorParser.regex.ldError=ld(\\.exe)?: (.*)
|
||||
CDTGNULinkerErrorParser.regex.ldWarning=(.*[/\\\\])?ld(\\.exe)?: [Ww]arning:? (.*)
|
||||
CDTGNULinkerErrorParser.regex.ldError=(.*[/\\\\])?ld(\\.exe)?: (.*)
|
||||
|
||||
CDTGNUAssemblerErrorParser.name=CDT GNU Assembler Error Parser
|
||||
CDTWorkingDirLocator.name=CDT pushd/popd CWD Locator
|
||||
|
|
|
@ -220,14 +220,14 @@
|
|||
regex="%CDTGNULinkerErrorParser.regex.TextError"
|
||||
severity="Error"/>
|
||||
<pattern
|
||||
description-expr="$2"
|
||||
description-expr="$3"
|
||||
eat-processed-line="true"
|
||||
file-expr=""
|
||||
line-expr=""
|
||||
regex="%CDTGNULinkerErrorParser.regex.ldWarning"
|
||||
severity="Warning"/>
|
||||
<pattern
|
||||
description-expr="$2"
|
||||
description-expr="$3"
|
||||
eat-processed-line="true"
|
||||
file-expr=""
|
||||
line-expr=""
|
||||
|
|
Loading…
Add table
Reference in a new issue