Skip to content

Commit 027db8d

Browse files
committed
[BatchMode] <rdar://40526328> Add a testcase for signal-interruption of cancelled batch constituents.
1 parent 84540c0 commit 027db8d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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: "error-message": "{{.*}}",
11+
// CHECK-NEXT: "signal": 2

0 commit comments

Comments
 (0)