Files
swift-mirror/validation-test/test-runner/NonZeroExitCodeIsFailure.swift
Arnold Schwaighofer 4d4329b0e0 Add executable_test to the validation test suite
Swift SVN r29278
2015-06-03 23:28:43 +00:00

18 lines
317 B
Swift

// RUN: %target-build-swift -module-name a %s -o %t.out
// RUN: %target-run %t.out
// REQUIRES: executable_test
// This test isn't temporarily disabled; it actually should terminate with a
// non-zero exit code.
//
// XFAIL: *
//
// Check that non-zero exit code counts as test failure.
//
import Darwin
exit(1)