blob: f8c1ab1a97240a23f90bbb064c436e505577485e [file] [log] [blame]
// RUN: %target-run-simple-swift 2>&1 | %FileCheck %s
// REQUIRES: executable_test
import StdlibUnittest
_setTestSuiteFailedCallback() { print("hooray") }
//
// Test that harness aborts when no tests are run.
//
var ForgotToRunTestsTestSuite = TestSuite("ForgotToRunTests")
ForgotToRunTestsTestSuite.test("Don'tRunThis") {
expectUnreachable()
}
// runAllTests() deliberately not called.
// runNoTests() deliberately not called.
// CHECK: Ran no tests
// CHECK: hooray