Skip to content

Commit 709cc21

Browse files
[Test] Remap test should be guarded by caching feature
Update cache path remap test to be correctly guarded by remapping because if toolchain doesn't support caching, the remap will be automatically disabled and remap will not happen.
1 parent 0c846ef commit 709cc21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/SwiftDriverTests/CachingBuildTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,9 @@ final class CachingBuildTests: XCTestCase {
759759
"-scanner-prefix-map", path.description + "=/^tmp",
760760
main.nativePathString(escaped: true)] + sdkArgumentsForTesting,
761761
env: ProcessEnv.vars)
762+
guard driver.isFeatureSupported(.cache_compile_job) else {
763+
throw XCTSkip("toolchain does not support caching.")
764+
}
762765
guard driver.isFrontendArgSupported(.scannerPrefixMap) else {
763766
throw XCTSkip("frontend doesn't support prefix map")
764767
}

0 commit comments

Comments
 (0)