mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
22 lines
416 B
Swift
22 lines
416 B
Swift
// RUN: %target-run-simple-swift 2>&1 | FileCheck %s
|
|
|
|
import StdlibUnittest
|
|
|
|
_setTestSuiteFailedCallback() { println("abort()") }
|
|
|
|
//
|
|
// Check that calling runAllTests() twice is an error.
|
|
//
|
|
|
|
var TestSuitePasses = TestSuite("TestSuitePasses")
|
|
|
|
TestSuitePasses.test("passes") {
|
|
expectEqual(1, 1)
|
|
}
|
|
|
|
runAllTests()
|
|
runAllTests()
|
|
// CHECK: runAllTests() called twice. It is not allowed, aborting.
|
|
// CHECK: abort()
|
|
|