Skip to content

Commit b9a07dc

Browse files
committed
Disable stdlib/Duration.swift tests on old OSes.
These tests exercise a code path that has a known bug on older OS versions (fixed with Swift 5.9), so disable it for testing in those environments.
1 parent e313169 commit b9a07dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/stdlib/Duration.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
// provided by the 32-bit LLVM. See `dividingFullWidth` in IntegerTypes.swift.gyb
66
// UNSUPPORTED: PTRSIZE=32
77

8+
// These test a codepath that was fixed in the Swift 5.9 stdlib, so it will
9+
// fail if run against earlier standard library versions.
10+
// UNSUPPORTED: use_os_stdlib
11+
// UNSUPPORTED: back_deployment_runtime
12+
813
import StdlibUnittest
914

1015
var suite = TestSuite("StringIndexTests")

0 commit comments

Comments
 (0)