[test] Tweak test to allow for warnings from ld, if there are any

There probably /shouldn't/ be, but it isn't this test's responsibility
to catch them.

rdar://problem/42271414
This commit is contained in:
Jordan Rose
2018-07-17 10:26:23 -07:00
parent 851c0e0883
commit 09b043c789

View File

@@ -5,6 +5,7 @@
// RUN: cd %t && %target-swiftc_driver -driver-show-job-lifecycle -output-file-map %t/output-file-map.json -incremental main.swift file1.swift file2.swift -j1 2>&1 | %FileCheck -check-prefix=CHECK-INITIAL %s
// CHECK-INITIAL-NOT: warning
// CHECK-INITIAL: Queuing (initial):
// CHECK-INITIAL: Job finished: {compile: main.o <= main.swift}
// CHECK-INITIAL: Job finished: {compile: file1.o <= file1.swift}
// CHECK-INITIAL: Job finished: {compile: file2.o <= file2.swift}
@@ -14,6 +15,7 @@
// RUN: cd %t && %target-swiftc_driver -driver-show-job-lifecycle -output-file-map %t/output-file-map.json -incremental main.swift file1.swift file2.swift -j1 2>&1 | %FileCheck -check-prefix=CHECK-REBUILD %s
// We should skip the main and file1 rebuilds here, but we should only note skipping them _once_
// CHECK-REBUILD: Queuing (initial):
// CHECK-REBUILD: Job finished: {compile: file2.o <= file2.swift}
// CHECK-REBUILD: Job skipped: {compile: main.o <= main.swift}
// CHECK-REBUILD: Job skipped: {compile: file1.o <= file1.swift}