Skip to content

Commit c58c661

Browse files
committed
[cxx-interop][nfc] Disable test for strstr on Linux.
1 parent 91ccb2f commit c58c661

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)