Skip to content

Commit 9666123

Browse files
authored
Merge pull request swiftlang#23692 from compnerd/rss-feeds
Driver: Win32 support for Driver.batch_mode_parseable_output_cancella…
2 parents 586b42e + 0f5362e commit 9666123

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/Driver/batch_mode_parseable_output_cancellation.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@
22
// RUN: touch %t/file-01.swift
33
// RUN: echo 'public func main() { help_an_error_happened() }' >%t/main.swift
44
//
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
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 -check-prefix CHECK -check-prefix CHECK-%target-os
66
//
77
// CHECK: "kind": "signalled",
88
// CHECK-NEXT: "name": "compile",
99
// CHECK-NEXT: "pid": -{{[1-9][0-9]*}},
1010
// CHECK-NEXT: "process": {
1111
// CHECK-NEXT: "real_pid": {{[1-9][0-9]*}}
12+
//
13+
// This information is not available on POSIX systems where the child is
14+
// signalled, but it is available on Windows. We simply report it there since
15+
// we already have the information.
16+
// CHECK-windows-msvc-NEXT: "usage": {
17+
// CHECK-windows-msvc-NEXT: "utime":
18+
// CHECK-windows-msvc-NEXT: "stime":
19+
// CHECK-windows-msvc-NEXT: "maxrss":
20+
// CHECK-windows-msvc-NEXT: }
21+
//
1222
// CHECK-NEXT: },
1323
// CHECK-NEXT: "error-message": "{{.*}}",
1424
// CHECK-NEXT: "signal": 2

0 commit comments

Comments
 (0)