mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
test: enable crash-in-user-code on Windows
This test was disabled on Windows through the `MSC_VER` condition. The failure was due to the redirection of the output which does not behave entirely the expected way with the lit shell. Use a temporary file instead and enable the test on Windows.
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
|
// RUN: %empty-directory(%t)
|
||||||
// RUN: echo %s > %t.filelist.txt
|
// RUN: echo %s > %t/filelist.txt
|
||||||
// RUN: not --crash %target-swift-frontend -interpret -filelist %t.filelist.txt 2>&1 | %FileCheck %s
|
// RUN: not --crash %target-swift-frontend -interpret -filelist %t/filelist.txt 2>&1 >%t/output.txt
|
||||||
|
// %FileCheck %s < %t/output.txt
|
||||||
|
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
|
|
||||||
// UNSUPPORTED: OS=ios
|
// UNSUPPORTED: OS=ios
|
||||||
// UNSUPPORTED: OS=tvos
|
// UNSUPPORTED: OS=tvos
|
||||||
// UNSUPPORTED: OS=watchos
|
// UNSUPPORTED: OS=watchos
|
||||||
// UNSUPPORTED: MSVC_VER=15.0
|
|
||||||
|
|
||||||
// CHECK: Stack dump:
|
// CHECK: Stack dump:
|
||||||
// CHECK-NEXT: Program arguments:
|
// CHECK-NEXT: Program arguments:
|
||||||
|
|||||||
Reference in New Issue
Block a user