[Gardening] Clean Up OS-Test Patterns Across The Codebase

Clean up a few general patterns that are now obviated by canImport

This aligns more generally with the cleanup that the Swift Package
Manager has already done in their automated XCTest-plumbing tool in
apple/swift-package-manager#1826.
This commit is contained in:
Robert Widmann
2020-06-30 22:23:53 -07:00
parent 30ccb52948
commit cddf73ecdb
66 changed files with 161 additions and 157 deletions

View File

@@ -3,9 +3,9 @@
// UNSUPPORTED: OS=windows-msvc
import StdlibUnittest
#if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
#if canImport(Darwin)
import Darwin
#elseif os(Linux) || os(FreeBSD) || os(OpenBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku) || os(WASI)
#elseif canImport(Glibc)
import Glibc
#else
#error("Unsupported platform")