File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
// RUN: touch %t/file-01.swift
3
3
// RUN: echo 'public func main() { help_an_error_happened() }' >%t/main.swift
4
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
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
6
6
//
7
7
// CHECK: "kind": "signalled",
8
8
// CHECK-NEXT: "name": "compile",
9
9
// CHECK-NEXT: "pid": -{{[1-9][0-9]*}},
10
10
// CHECK-NEXT: "process": {
11
11
// 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
+ //
12
22
// CHECK-NEXT: },
13
23
// CHECK-NEXT: "error-message": "{{.*}}",
14
24
// CHECK-NEXT: "signal": 2
You can’t perform that action at this time.
0 commit comments