File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
// RUN: cp %s %t/main.swift
3
3
// RUN: %target-build-swift -Xfrontend -playground -Xfrontend -disable-playground-transform -o %t/main %t/main.swift
4
4
// RUN: %target-codesign %t/main
5
- // RUN: ! % target-run %t/main --crash 2>&1 | %FileCheck -check-prefix=CRASH-CHECK %s
5
+ // RUN: %{python} %S/Inputs/not.py "% target-run %t/main --crash" 2>&1 | %FileCheck -check-prefix=CRASH-CHECK %s
6
6
// REQUIRES: executable_test
7
7
8
- // NOTE: "!" is used above instead of "not --crash" because simctl's exit
8
+ // NOTE: not.py is used above instead of "not --crash" because simctl's exit
9
9
// status doesn't reflect whether its child process crashed or not. So "not
10
10
// --crash %target-run ..." always fails when testing for the iOS Simulator.
11
11
// The more precise solution would be to use a version of 'not' cross-compiled
12
12
// for the simulator.
13
13
14
14
func f( ) -> Int {
15
15
fatalError ( )
16
+ // CRASH-CHECK: {{[fF]}}atal error: file {{.*}}/main.swift, line [[@LINE-1]]
16
17
}
17
18
18
19
f ( )
You can’t perform that action at this time.
0 commit comments