Skip to content

Commit e8219a5

Browse files
authored
[test] Just check that we can /import/ the XCTest overlay (#23020)
This would have caught Apple-internal issue rdar://problem/48512910.
1 parent bb0f0c8 commit e8219a5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/stdlib/XCTest-smoke.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: not test -e %platform-sdk-overlay-dir/XCTest.swiftmodule || %target-build-swift %s -o %t/main
3+
4+
// REQUIRES: objc_interop
5+
6+
import XCTest
7+
8+
// Check that we can actually refer to functions from the XCTest overlay.
9+
let optionalInt: Int? = nil
10+
XCTAssertNil(optionalInt)
11+
12+
// Check that the underlying framework was imported.
13+
_ = XCTestCase.self

0 commit comments

Comments
 (0)