Skip to content

Commit 00799c4

Browse files
authored
Merge pull request swiftlang#40883 from compnerd/moar
test: partially enable some C++ interop tests on Windows
2 parents dd2cec5 + 0d95706 commit 00799c4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/Interop/Cxx/operators/member-inline.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-cxx-interop)
2-
//
2+
33
// REQUIRES: executable_test
4-
//
5-
// We can't yet call member functions correctly on Windows (SR-13129).
6-
// XFAIL: OS=windows-msvc
74

85
import MemberInline
96
import StdlibUnittest
107

118
var OperatorsTestSuite = TestSuite("Operators")
129

10+
#if !os(Windows) // SR-13129
1311
OperatorsTestSuite.test("LoadableIntWrapper.plus (inline)") {
1412
var lhs = LoadableIntWrapper(value: 42)
1513
let rhs = LoadableIntWrapper(value: 23)
@@ -18,6 +16,7 @@ OperatorsTestSuite.test("LoadableIntWrapper.plus (inline)") {
1816

1917
expectEqual(19, result.value)
2018
}
19+
#endif
2120

2221
OperatorsTestSuite.test("LoadableIntWrapper.call (inline)") {
2322
var wrapper = LoadableIntWrapper(value: 42)
@@ -132,6 +131,7 @@ OperatorsTestSuite.test("DifferentTypesArrayByVal.subscript (inline)") {
132131
expectEqual(1.5.rounded(.up), resultDouble.rounded(.up))
133132
}
134133

134+
#if !os(Windows) // SR-13129
135135
OperatorsTestSuite.test("NonTrivialArrayByVal.subscript (inline)") {
136136
var arr = NonTrivialArrayByVal()
137137
let NonTrivialByVal = arr[0];
@@ -145,6 +145,7 @@ OperatorsTestSuite.test("NonTrivialArrayByVal.subscript (inline)") {
145145
expectEqual(5, NonTrivialByVal.e)
146146
expectEqual(6, NonTrivialByVal.f)
147147
}
148+
#endif
148149

149150
OperatorsTestSuite.test("PtrByVal.subscript (inline)") {
150151
var arr = PtrByVal()

test/Interop/Cxx/operators/member-out-of-line.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33
// RUN: %target-build-swift %s -I %S/Inputs -o %t/member-out-of-line %t/member-out-of-line.o -Xfrontend -enable-cxx-interop
44
// RUN: %target-codesign %t/member-out-of-line
55
// RUN: %target-run %t/member-out-of-line
6-
//
6+
77
// REQUIRES: executable_test
8-
//
9-
// We can't yet call member functions correctly on Windows (SR-13129).
10-
// XFAIL: OS=windows-msvc
118

129
import MemberOutOfLine
1310
import StdlibUnittest
1411

1512
var OperatorsTestSuite = TestSuite("Operators")
1613

14+
#if !os(Windows) // SR-13129
1715
OperatorsTestSuite.test("LoadableIntWrapper.plus (out-of-line)") {
1816
let lhs = LoadableIntWrapper(value: 42)
1917
let rhs = LoadableIntWrapper(value: 23)
@@ -22,6 +20,7 @@ OperatorsTestSuite.test("LoadableIntWrapper.plus (out-of-line)") {
2220

2321
expectEqual(65, result.value)
2422
}
23+
#endif
2524

2625
OperatorsTestSuite.test("LoadableIntWrapper.call (out-of-line)") {
2726
let wrapper = LoadableIntWrapper(value: 42)

0 commit comments

Comments
 (0)