Skip to content

Commit e48ee8d

Browse files
committed
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.
1 parent 054bae5 commit e48ee8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Frontend/crash-in-user-code.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
2-
// RUN: echo %s > %t.filelist.txt
3-
// RUN: not --crash %target-swift-frontend -interpret -filelist %t.filelist.txt 2>&1 | %FileCheck %s
1+
// RUN: %empty-directory(%t)
2+
// RUN: echo %s > %t/filelist.txt
3+
// RUN: not --crash %target-swift-frontend -interpret -filelist %t/filelist.txt 2>&1 >%t/output.txt
4+
// %FileCheck %s < %t/output.txt
45

56
// REQUIRES: executable_test
67

78
// UNSUPPORTED: OS=ios
89
// UNSUPPORTED: OS=tvos
910
// UNSUPPORTED: OS=watchos
10-
// UNSUPPORTED: MSVC_VER=15.0
1111

1212
// CHECK: Stack dump:
1313
// CHECK-NEXT: Program arguments:

0 commit comments

Comments
 (0)