Skip to content

Commit d6fb616

Browse files
committed
Tests: Use a local cache for error-sil-function.swift
This test appears flaky and it looks to be related to errors on modules in the SDK from the timing with other failures. The flackiness is likely from non-determinism in the module cache. Update the test to use a local cache, which is a good practice for any test importing a module from the SDK. rdar://144272339
1 parent a619daf commit d6fb616

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Serialization/Recovery/error-sil-function.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: not --crash %target-swift-frontend -c %s 2>&1 | %FileCheck %s
1+
// RUN: %empty-directory(%t/cache)
2+
// RUN: not --crash %target-swift-frontend -c %s -module-cache-path %t/cache 2>&1 | %FileCheck %s
23
// CHECK: *** DESERIALIZATION FAILURE ***
34
// CHECK: SILFunction type mismatch for 'asinf': '$@convention(thin) (Float) -> Float' != '$@convention(c) (Float) -> Float'
45

0 commit comments

Comments
 (0)