// RUN: %target-run-simple-swift 2>&1 | %FileCheck %s
// REQUIRES: executable_test

import StdlibUnittest


_setTestSuiteFailedCallback() { print("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. Aborting.
// CHECK: abort()

