[test][gardening] Prefer os(macOS) over os(OSX)

This commit is contained in:
Sho Ikeda
2018-03-10 22:22:24 +09:00
parent c26f40b45b
commit b68be20e9d
27 changed files with 48 additions and 42 deletions

View File

@@ -1329,7 +1329,7 @@ NSStringAPIs.test("smallestEncoding") {
}
func getHomeDir() -> String {
#if os(OSX)
#if os(macOS)
return String(cString: getpwuid(getuid()).pointee.pw_dir)
#elseif os(iOS) || os(tvOS) || os(watchOS)
// getpwuid() returns null in sandboxed apps under iOS simulator.