mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 19:35:36 +02:00
Bug 559674: fix failing tests
Change-Id: I6bf9a81dd1cbf673b2472597fc431e6bb1c75ef8 Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
This commit is contained in:
parent
3b1141482d
commit
48961a341b
3 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ public class GccOutputProcessorTest {
|
|||
}
|
||||
}
|
||||
|
||||
assertEquals("# include paths", 5, pc.getIncludePaths().size());
|
||||
assertEquals("# include paths", 5, pc.getSystemIncludePaths().size());
|
||||
assertEquals("# macros", 238, pc.getDefines().size());
|
||||
|
||||
// check __GNUC__
|
||||
|
|
|
@ -105,6 +105,7 @@ public class DefaultToolCommandlineParser implements IToolCommandlineParser {
|
|||
private class ParserHandler implements IParserHandler {
|
||||
|
||||
private final IPath cwd;
|
||||
private final ParseContext result = new ParseContext();
|
||||
|
||||
/**
|
||||
* @param cwd the current working directory of the compiler at the time of its
|
||||
|
@ -122,7 +123,6 @@ public class DefaultToolCommandlineParser implements IToolCommandlineParser {
|
|||
*/
|
||||
@SuppressWarnings("nls")
|
||||
private IResult parseArguments(IResponseFileArglet responseFileArglet, String args) {
|
||||
ParseContext result = new ParseContext();
|
||||
// eat buildOutput string argument by argument..
|
||||
while (!(args = StringUtil.trimLeadingWS(args)).isEmpty()) {
|
||||
boolean argParsed = false;
|
||||
|
|
|
@ -55,7 +55,7 @@ public class NvccOutputProcessorTest {
|
|||
}
|
||||
}
|
||||
|
||||
assertEquals("# include paths", 6, pc.includePaths.size());
|
||||
assertEquals("# include paths", 6, pc.systemIncludePaths.size());
|
||||
assertEquals("# macros", 242, pc.defines.size());
|
||||
|
||||
// check __CUDACC_VER_BUILD__
|
||||
|
|
Loading…
Add table
Reference in a new issue