<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Vivian,<div class=""><br class=""></div><div class="">After looking at your PR, I realize I was mistaken here.</div><div class=""><br class=""></div><div class="">We can't *run* the tests on non-macOS yet, so we can't fully test `swift-test`, but after looking at these exact tests they are just checking minor details of the `swift-test` tool.</div><div class=""><br class=""></div><div class="">I'm now unsure why these would be failing. It looks like something is not right for the dynamic linker search paths.</div><div class=""><br class=""></div><div class="">{{swiftc}} currently embeds an RPATH on Linux pointing into its standard library directory. Is it possible that isn't happening on s390x? I'm not sure why this would only apply to swift-test though.</div><div class=""><br class=""></div><div class="">&nbsp;- Daniel</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Aug 16, 2016, at 8:11 AM, Daniel Dunbar via swift-build-dev &lt;<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">Those tests don't work on non-macOS yet. I suspect the problem is simply that they are conditionalized on not-Linux vs only-macOS, but they probably shouldn't be running.&nbsp;<div class=""><br class=""></div><div class="">&nbsp;- Daniel<span class=""></span><br class=""><br class="">On Tuesday, August 16, 2016, Vivian Kong via swift-build-dev &lt;<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>&gt; wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><p class="">I ran into these 2 failing test cases in TestToolTests when I ran the SwiftPM tests on s390x.  I'm looking for hints on how to fix this as I'm not sure why the Foundation and XCTest module can't be found.<br class=""><br class="">Thanks and I appreciate the help!<br class=""><br class="">Test Case 'TestToolTests.testVersion' started at 18:01:42.018<br class="">**** FAILURE EXECUTING SUBPROCESS ****<br class="">command: /localbox/vivkong/swift3/<wbr class="">build/Ninja-<wbr class="">RelWithDebInfoAssert/swiftpm-<wbr class="">linux-s390x/debug/swift-test --version<br class="">SWIFT_EXEC: nil<br class="">output: Compile Swift Module 'Basic' (20 sources)<br class="">Compile Swift Module 'POSIXTests' (2 sources)<br class="">Compile Swift Module 'PackageDescriptionTests' (3 sources)<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Tests/POSIXTests/<wbr class="">XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">       ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Tests/POSIXTests/<wbr class="">XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">       ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Tests/<wbr class="">PackageDescriptionTests/<wbr class="">XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">       ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Tests/<wbr class="">PackageDescriptionTests/<wbr class="">XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">       ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Tests/<wbr class="">PackageDescriptionTests/<wbr class="">XCTestManifests.swift:11:8: error: no such module 'XCTest'<br class="">import XCTest<br class="">       ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Sources/Basic/<wbr class="">TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">             ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Sources/Basic/<wbr class="">TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">             ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Sources/Basic/<wbr class="">TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">             ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Sources/Basic/<wbr class="">TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">             ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Sources/Basic/<wbr class="">TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">             ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Sources/Basic/<wbr class="">TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">             ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Sources/Basic/<wbr class="">TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">             ^<br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Sources/Basic/<wbr class="">TemporaryFile.swift:13:14: error: no such module 'Foundation'<br class="">import class Foundation.FileHandle<br class="">             ^<br class="">&lt;unknown&gt;:0: error: build had 3 command failures<br class="">swift-test: error: exit(-1263376016): /localbox/vivkong/swift3/<wbr class="">build/Ninja-<wbr class="">RelWithDebInfoAssert/swiftpm-<wbr class="">linux-s390x/debug/swift-build-<wbr class="">tool -f /localbox/vivkong/swift3/<wbr class="">swiftpm/.build/debug.yaml test<br class=""><br class="">/localbox/vivkong/swift3/<wbr class="">swiftpm/Tests/CommandsTests/<wbr class="">TestToolTests.swift:26: error: TestToolTests.testVersion : XCTAssertTrue threw error "exit(152): /localbox/vivkong/swift3/<wbr class="">build/Ninja-<wbr class="">RelWithDebInfoAssert/swiftpm-<wbr class="">linux-s390x/debug/swift-test --version" - <br class="">Test Case 'TestToolTests.testVersion' failed (1.2 seconds).<br class="">Test Suite 'TestToolTests' failed at 18:01:43.218<br class="">         Executed 2 tests, with 2 failures (2 unexpected) in 2.248 (2.248) seconds<br class=""><br class="">Regards,<br class=""><br class="">Vivian Kong<br class="">Software Developer<br class="">IBM Canada Toronto Lab<br class="">
</p></div>
</blockquote></div>
_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-build-dev<br class=""></div></blockquote></div><br class=""></div></body></html>