Skip to content

Commit 8f44ca6

Browse files
authored
Merge pull request #24297 from plotfi/master
2 parents f23a8e8 + 144b560 commit 8f44ca6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/PlaygroundTransform/implicit_return_never.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
// RUN: cp %s %t/main.swift
33
// RUN: %target-build-swift -Xfrontend -playground -Xfrontend -disable-playground-transform -o %t/main %t/main.swift
44
// 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
66
// REQUIRES: executable_test
77

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
99
// status doesn't reflect whether its child process crashed or not. So "not
1010
// --crash %target-run ..." always fails when testing for the iOS Simulator.
1111
// The more precise solution would be to use a version of 'not' cross-compiled
1212
// for the simulator.
1313

1414
func f() -> Int {
1515
fatalError()
16+
// CRASH-CHECK: {{[fF]}}atal error: file {{.*}}/main.swift, line [[@LINE-1]]
1617
}
1718

1819
f()

0 commit comments

Comments
 (0)