From ebc8757bd3e2ee23362b61d73947a61bdf93f2de Mon Sep 17 00:00:00 2001 From: Sandeep Vijayarao Date: Fri, 6 Nov 2026 03:35:03 -0800 Subject: [PATCH] Guard the memoizedValue fuzz steps with #available `memoizedValue(forKey:_:)` and `Ref.value` need SwiftStdlib 6.4, so the fuzz tests failed to compile on macOS with the UnstableHashedContainers trait (CI only enables that trait on Linux). Skip just that operation on older platforms instead of marking the whole tests unavailable. --- Tests/BasicContainersTests/HashedContainersFuzzTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/BasicContainersTests/HashedContainersFuzzTests.swift b/Tests/BasicContainersTests/HashedContainersFuzzTests.swift index a59d86e1..1a1821fe 100644 --- a/Tests/BasicContainersTests/HashedContainersFuzzTests.swift +++ b/Tests/BasicContainersTests/HashedContainersFuzzTests.swift @@ -310,6 +310,7 @@ class HashedContainersFuzzTests: CollectionTestCase { } case 5: guard canAdd else { break } + guard #available(SwiftStdlib 6.4, *) else { break } let expected = model[k] ?? step let ref = d.memoizedValue(forKey: key) { _ in tracker.instance(for: step) @@ -398,6 +399,7 @@ class HashedContainersFuzzTests: CollectionTestCase { default: break } case 5: + guard #available(SwiftStdlib 6.4, *) else { break } let expected = model[k] ?? step let ref = d.memoizedValue(forKey: key) { _ in tracker.instance(for: step)