Skip to content

Commit 63f90fe

Browse files
authored
[cxx-interop] Partially re-enable a test on Linux
`std::map` conformance to `CxxDictionary` is synthesized properly, only the `std::unordered_map` conformance is problematic. Let's make sure we test the `std::map` conformance with libstdc++ on Linux.
1 parent 4148684 commit 63f90fe

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)