Skip to content

Commit 07c8270

Browse files
committed
[BatchMode] <rdar://40526328> Add a testcase for signal-interruption of cancelled batch constituents.
1 parent dcc4373 commit 07c8270

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: touch %t/file-01.swift
3+
// RUN: echo 'public func main() { help_an_error_happened() }' >%t/main.swift
4+
//
5+
// RUN: not %swiftc_driver -enable-batch-mode -parseable-output -serialize-diagnostics -c -emit-module -module-name main -j 1 %t/file-01.swift %t/main.swift 2>&1 | %FileCheck %s
6+
//
7+
// CHECK: "kind": "signalled",
8+
// CHECK-NEXT: "name": "compile",
9+
// CHECK-NEXT: "pid": -{{[1-9][0-9]*}},
10+
// CHECK-NEXT: "process": {
11+
// CHECK-NEXT: "real_pid": {{[1-9][0-9]*}}
12+
// CHECK-NEXT: },
13+
// CHECK-NEXT: "error-message": "{{.*}}",
14+
// CHECK-NEXT: "signal": 2

0 commit comments

Comments
 (0)