Skip to content

Commit

Permalink
Fix SwiftNativeLinkableTest on Windows
Browse files Browse the repository at this point in the history
Reviewed By: bobyangyf

fbshipit-source-id: 27f3875b25
  • Loading branch information
Sergey Tyurin authored and facebook-github-bot committed May 8, 2019
1 parent b8f2492 commit 1a6bbee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions test/com/facebook/buck/swift/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ java_test(
"//src/com/facebook/buck/event/listener:listener",
"//src/com/facebook/buck/io:executable-finder",
"//src/com/facebook/buck/io:io",
"//src/com/facebook/buck/io/file:file",
"//src/com/facebook/buck/io/watchman:transport",
"//src/com/facebook/buck/io/watchman:watchman",
"//src/com/facebook/buck/json:json",
Expand Down
13 changes: 7 additions & 6 deletions test/com/facebook/buck/swift/SwiftNativeLinkableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.facebook.buck.core.toolchain.tool.Tool;
import com.facebook.buck.core.toolchain.tool.impl.VersionedTool;
import com.facebook.buck.cxx.toolchain.linker.Linker;
import com.facebook.buck.io.file.MorePaths;
import com.facebook.buck.rules.args.Arg;
import com.facebook.buck.swift.toolchain.SwiftPlatform;
import com.facebook.buck.swift.toolchain.impl.SwiftPlatformFactory;
Expand Down Expand Up @@ -74,15 +75,15 @@ public void testStaticLinkerFlagsOnMobile() {
"-Xlinker",
"-rpath",
"-Xlinker",
"/usr/lib/swift",
MorePaths.pathWithPlatformSeparators("/usr/lib/swift"),
"-Xlinker",
"-rpath",
"-Xlinker",
"@executable_path/Frameworks",
MorePaths.pathWithPlatformSeparators("@executable_path/Frameworks"),
"-Xlinker",
"-rpath",
"-Xlinker",
"@loader_path/Frameworks"));
MorePaths.pathWithPlatformSeparators("@loader_path/Frameworks")));
}

@Test
Expand All @@ -102,14 +103,14 @@ public void testStaticLinkerFlagsOnMac() {
"-Xlinker",
"-rpath",
"-Xlinker",
"/usr/lib/swift",
MorePaths.pathWithPlatformSeparators("/usr/lib/swift"),
"-Xlinker",
"-rpath",
"-Xlinker",
"@executable_path/../Frameworks",
MorePaths.pathWithPlatformSeparators("@executable_path/../Frameworks"),
"-Xlinker",
"-rpath",
"-Xlinker",
"@loader_path/../Frameworks"));
MorePaths.pathWithPlatformSeparators("@loader_path/../Frameworks")));
}
}
1 change: 0 additions & 1 deletion windows_failures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
!com.facebook.buck.core.build.engine.impl.CachingBuildEngineTest
!com.facebook.buck.core.build.engine.impl.CachingBuildEngineTest.*
!com.facebook.buck.core.model.graph.action.computation.ActionGraphCacheIntegrationTest
!com.facebook.buck.swift.SwiftNativeLinkableTest

0 comments on commit 1a6bbee

Please sign in to comment.