Skip to content

Commit 227c6a8

Browse files
authored
Merge pull request #67053 from zoecarver/fix-math-test-linux-str-str
[cxx-interop][nfc] Disable test for strstr on Linux.
2 parents 91ccb2f + c58c661 commit 227c6a8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/Interop/Cxx/stdlib/avoid-import-cxx-math.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ func test() {
1515
// let _ = div(42, 2)
1616
let _ = sin(x)
1717
let _ = cos(x)
18+
19+
// strstr comes from stdlib.h or cstdlib on *some* flavors of linux, so it
20+
// won't get imported. We may need a more fine grained approach for those
21+
// platforms.
22+
#if !os(Linux)
1823
let _ = strstr("a", "aaa")
19-
24+
#endif
25+
2026
exit(0)
2127
}

0 commit comments

Comments
 (0)