1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 11:55:40 +02:00

Bug 559674: fix failing tests

Change-Id: I6bf9a81dd1cbf673b2472597fc431e6bb1c75ef8
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
This commit is contained in:
Martin Weber 2020-06-02 20:33:37 +02:00 committed by Alexander Fedorov
parent 3b1141482d
commit 48961a341b
3 changed files with 3 additions and 3 deletions

View file

@ -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()); assertEquals("# macros", 238, pc.getDefines().size());
// check __GNUC__ // check __GNUC__

View file

@ -105,6 +105,7 @@ public class DefaultToolCommandlineParser implements IToolCommandlineParser {
private class ParserHandler implements IParserHandler { private class ParserHandler implements IParserHandler {
private final IPath cwd; private final IPath cwd;
private final ParseContext result = new ParseContext();
/** /**
* @param cwd the current working directory of the compiler at the time of its * @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") @SuppressWarnings("nls")
private IResult parseArguments(IResponseFileArglet responseFileArglet, String args) { private IResult parseArguments(IResponseFileArglet responseFileArglet, String args) {
ParseContext result = new ParseContext();
// eat buildOutput string argument by argument.. // eat buildOutput string argument by argument..
while (!(args = StringUtil.trimLeadingWS(args)).isEmpty()) { while (!(args = StringUtil.trimLeadingWS(args)).isEmpty()) {
boolean argParsed = false; boolean argParsed = false;

View file

@ -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()); assertEquals("# macros", 242, pc.defines.size());
// check __CUDACC_VER_BUILD__ // check __CUDACC_VER_BUILD__