Files
swift-mirror/validation-test/StdlibUnittest/ChildProcessShutdown/PassIfChildCrashedDuringTestExecution.swift
Han Sangjin a8dec7fa43 [stdlib] Fixed for Cygwin
- CYGWIN symbol is used to distinguish Cygwin environment from other OS
  and other environment in Windows.
- Added windows and windowsCygnus to OSVersion in StdlibUnittest
2017-01-17 02:31:16 +09:00

25 lines
520 B
Swift

// RUN: %target-run-simple-swift
// REQUIRES: executable_test
import StdlibUnittest
#if os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Windows)
import Glibc
#else
import Darwin
#endif
//
// Test that harness correctly handles the case when there is no child process
// to terminate during shutdown because it crashed during test execution.
//
var TestSuiteChildCrashes = TestSuite("TestSuiteChildCrashes")
TestSuiteChildCrashes.test("passes") {
expectCrashLater()
fatalError("crash")
}
runAllTests()