Skip to content

Commit 399afd1

Browse files
authored
Merge pull request #63654 from apple/egorzhdan/reenable-std-map-test
[cxx-interop] Partially re-enable a test on Linux
2 parents 9a1a32c + 63f90fe commit 399afd1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Interop/Cxx/stdlib/use-std-map.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
//
33
// REQUIRES: executable_test
44
//
5-
// REQUIRES: OS=macosx
6-
// TODO: enable on Linux (rdar://105220600)
5+
// REQUIRES: OS=macosx || OS=linux-gnu
76

87
import StdlibUnittest
98
import StdMap
@@ -32,6 +31,7 @@ StdMapTestSuite.test("Map.subscript") {
3231
expectNil(m[5])
3332
}
3433

34+
#if !os(Linux) // TODO: enable on Linux (rdar://105220600)
3535
StdMapTestSuite.test("UnorderedMap.subscript") {
3636
// This relies on the `std::unordered_map` conformance to `CxxDictionary` protocol.
3737
var m = initUnorderedMap()
@@ -41,5 +41,6 @@ StdMapTestSuite.test("UnorderedMap.subscript") {
4141
expectNil(m[-1])
4242
expectNil(m[5])
4343
}
44+
#endif
4445

4546
runAllTests()

0 commit comments

Comments
 (0)