File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 2
2
// RUN: touch %t/file-01.swift %t/file-02.swift %t/file-03.swift
3
3
// RUN: echo 'public func main() {}' >%t/main.swift
4
4
//
5
- // RUN: %swiftc_driver -enable-batch-mode -c -emit-module -module-name main -j 2 -driver-force-one-batch-repartition %t/file-01.swift %t/file-02.swift %t/file-03.swift %t/main.swift -### 2>%t/shouldBeEmpty2 | %FileCheck %s -check-prefix=CHECK-COMBINED
6
- // RUN: test -z "`cat %t/shouldBeEmpty1`"
7
- // RUN: test -z "`cat %t/shouldBeEmpty2`"
8
- //
5
+ // RUN: %swiftc_driver -enable-batch-mode -c -emit-module -module-name main -j 2 -driver-force-one-batch-repartition %t/file-01.swift %t/file-02.swift %t/file-03.swift %t/main.swift -### 2>%t/stderr | %FileCheck %s -check-prefix=CHECK-COMBINED
6
+
9
7
// CHECK-COMBINED: -primary-file {{.*}}/file-01.swift
10
8
// CHECK-COMBINED-NEXT: -primary-file {{.*}}/file-02.swift
11
9
// CHECK-COMBINED-NEXT: -primary-file {{.*}}/file-03.swift
Original file line number Diff line number Diff line change 10
10
// RUN: touch %t/file-01.swift %t/file-02.swift %t/file-03.swift
11
11
// RUN: echo 'public func main() {}' >%t/main.swift
12
12
//
13
- // RUN: %swiftc_driver -enable-batch-mode -c -emit-module -module-name main -j 2 %t/file-01.swift %t/file-02.swift %t/file-03.swift %t/main.swift -driver-print-jobs 2>%t/shouldBeEmpty1 | %FileCheck %s -check-prefix=CHECK-COMBINED
14
- // RUN: %swiftc_driver -enable-batch-mode -c -emit-module -module-name main -j 2 %t/file-01.swift %t/file-02.swift %t/file-03.swift %t/main.swift -### 2>%t/shouldBeEmpty2 | %FileCheck %s -check-prefix=CHECK-COMBINED
15
- // RUN: test -z "`cat %t/shouldBeEmpty1`"
16
- // RUN: test -z "`cat %t/shouldBeEmpty2`"
13
+ // RUN: %swiftc_driver -enable-batch-mode -c -emit-module -module-name main -j 2 %t/file-01.swift %t/file-02.swift %t/file-03.swift %t/main.swift -driver-print-jobs 2>%t/stderr1 | %FileCheck %s -check-prefix=CHECK-COMBINED
14
+ // RUN: %swiftc_driver -enable-batch-mode -c -emit-module -module-name main -j 2 %t/file-01.swift %t/file-02.swift %t/file-03.swift %t/main.swift -### 2>%t/stderr2 | %FileCheck %s -check-prefix=CHECK-COMBINED
15
+ // RUN: %FileCheck %s -check-prefix=NEGATIVE-CHECK-COMBINED < %t/stderr1
16
+ // RUN: %FileCheck %s -check-prefix=NEGATIVE-CHECK-COMBINED < %t/stderr2
17
17
//
18
18
// CHECK-COMBINED: -primary-file {{.*}}/file-01.swift -primary-file {{.*}}/file-02.swift {{.*}}/file-03.swift {{.*}}/main.swift
19
+ // NEGATIVE-CHECK-COMBINED-NOT: -primary-file {{.*}}/file-01.swift -primary-file {{.*}}/file-02.swift {{.*}}/file-03.swift {{.*}}/main.swift
You can’t perform that action at this time.
0 commit comments