mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add support for AppleTV simulator tests.
You can run tests with e.g. 'ninja check-swift-appletvsimulator-x86_64'. Swift SVN r27297
This commit is contained in:
@@ -1137,7 +1137,7 @@ NSStringAPIs.test("smallestEncoding") {
|
||||
func getHomeDir() -> String {
|
||||
#if os(OSX)
|
||||
return String.fromCString(getpwuid(getuid()).memory.pw_dir)!
|
||||
#elseif os(iOS)
|
||||
#elseif os(iOS) || os(tvOS)
|
||||
// getpwuid() returns null in sandboxed apps under iOS simulator.
|
||||
return NSHomeDirectory()
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user