mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[test][gardening] Prefer os(macOS) over os(OSX)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user