diff options
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/rules/cpp/CompileCommandLineTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/rules/cpp/CompileCommandLineTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/cpp/CompileCommandLineTest.java b/src/test/java/com/google/devtools/build/lib/rules/cpp/CompileCommandLineTest.java index 93d1c69452..e0fd56322a 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/cpp/CompileCommandLineTest.java +++ b/src/test/java/com/google/devtools/build/lib/rules/cpp/CompileCommandLineTest.java @@ -92,7 +92,7 @@ public class CompileCommandLineTest extends BuildViewTestCase { " }", "}")) .build(); - assertThat(compileCommandLine.getArguments(/* overwrittenVariables= */ null)) + assertThat(compileCommandLine.getArgv(scratchArtifact("a/FakeOutput").getExecPath(), null)) .contains("-some_foo_flag"); } @@ -134,12 +134,13 @@ public class CompileCommandLineTest extends BuildViewTestCase { "}")) .setCoptsFilter(flag -> !flag.contains("i_am_a_flag")) .build(); - return compileCommandLine.getArguments(/* overwrittenVariables= */ null); + return compileCommandLine.getArgv(scratchArtifact("a/FakeOutput").getExecPath(), null); } private Builder makeCompileCommandLineBuilder() throws Exception { return CompileCommandLine.builder( scratchArtifact("a/FakeInput"), + scratchArtifact("a/FakeOutput"), new Predicate<String>() { @Override public boolean apply(String s) { |