Skip to content

Commit

Permalink
Fix testLinkerParamFileIsExported on Windows
Browse files Browse the repository at this point in the history
Fixed: bazelbuild#2376

--
PiperOrigin-RevId: 144969681
MOS_MIGRATED_REVID=144969681
  • Loading branch information
meteorcloudy authored and vladmos committed Jan 19, 2017
1 parent 304a8a9 commit e7f6fbe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.google.devtools.build.lib.rules.cpp.CcToolchainFeatures.Variables.LibraryToLinkValue;
import com.google.devtools.build.lib.rules.cpp.CcToolchainFeatures.Variables.VariableValue;
import com.google.devtools.build.lib.rules.cpp.Link.LinkTargetType;
import com.google.devtools.build.lib.util.OsUtils;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -170,7 +171,8 @@ public void testLinkerParamFileIsExported() throws Exception {
Variables variables = getLinkBuildVariables(target, Link.LinkTargetType.EXECUTABLE);
List<String> variableValue =
getVariableValue(variables, CppLinkActionBuilder.LINKER_PARAM_FILE_VARIABLE);
assertThat(Iterables.getOnlyElement(variableValue)).matches(".*bin/x/bin-2.params$");
assertThat(Iterables.getOnlyElement(variableValue)).matches(".*bin/x/bin"
+ OsUtils.executableExtension() + "-2.params$");
}

@Test
Expand Down

0 comments on commit e7f6fbe

Please sign in to comment.