Make verify_all_overlays.sil fail loudly instead of silently (#22325)

...then XFAIL it. Filed https://bugs.swift.org/browse/SR-9847 to look
into it later.
This commit is contained in:
Jordan Rose
2019-02-04 11:53:25 -08:00
committed by GitHub
parent 48e48f22fe
commit 482d2baccd

View File

@@ -1,6 +1,11 @@
// RUN: for x in %platform-sdk-overlay-dir/*.swiftmodule; do [[ $(basename "$x") = Swift.swiftmodule ]] && continue; llvm-bcanalyzer $x | %FileCheck %s; %target-sil-opt -sdk %sdk -enable-sil-verify-all $x > /dev/null; done // RUN: %empty-directory(%t)
// RUN: for x in %platform-sdk-overlay-dir/*.swiftmodule; do [[ $(basename "$x") = Swift.swiftmodule ]] && continue; llvm-bcanalyzer $x | %FileCheck %s || echo "$x (bcanalyzer)" >> %t.txt; %target-sil-opt -sdk %sdk -enable-sil-verify-all $x > /dev/null || echo "$x (sil-opt)" >> %t/failures.txt; done
// RUN: not cat %t/failures.txt
// CHECK-NOT: Unknown // CHECK-NOT: Unknown
// REQUIRES: long_test // REQUIRES: long_test
// REQUIRES: nonexecutable_test // REQUIRES: nonexecutable_test
// XFAIL: OS=macosx || OS=ios || OS=tvos || OS=watchos
// https://bugs.swift.org/browse/SR-9847