[test] Convert XCTest test to a build-only API test

Some bad interactions with StdlibUnittest and XCTest lead to sporadic test timeouts for this test. Given that the codebase is obsolete, the best option seems to be to stop running this test altogether. All we really care is that the resulting dylib still contains the right symbols, and building (but not running) this test seems to be a reasonable way of doing that.
This commit is contained in:
Karoy Lorentey
2020-03-26 16:35:22 -07:00
parent 3e8509df08
commit 4d0ea75e15

View File

@@ -1,7 +1,20 @@
// RUN: rm -rf %t ; mkdir -p %t
// RUN: %target-build-swift %s -o %t/a.out -swift-version 4 && %target-run %t/a.out
// RUN: %target-build-swift %s -o %t/a.out -swift-version 4
// The actual XCTest overlay is not maintained in this repository -- it is
// distributed in Xcode (libXCTestSwiftSupport.dylib), along with
// XCTest.framework itself.
//
// The codebase here builds the obsolete /usr/lib/swift/libswiftXCTest.dylib
// that currently ships in the OS. There is no expectation that that library is
// usable for anything; it only exists to maintain a superficial level of binary
// compatibility with existing apps that happen to link to it by mistake.
//
// Accordingly, this test is now a build-only test. The code here is only
// compiled, it is never run.
//
// rdar://problem/55270944
// REQUIRES: executable_test
// REQUIRES: objc_interop
// FIXME: Add a feature for "platforms that support XCTest".