diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-01 21:05:36 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-01 21:05:36 +0000 |
commit | bd899eacb2f000ff835b22ba320c1b6cc423892b (patch) | |
tree | 8627cc0457385a849d6b86c4b227271f9a69bbcb /lldb/unittests/Platform | |
parent | e9bf25cf0ae2b6d64ca59627a85e03698df7d011 (diff) |
[FileSystem] Move path resolution logic out of FileSpec
This patch removes the logic for resolving paths out of FileSpec and
updates call sites to rely on the FileSystem class instead.
Differential revision: https://reviews.llvm.org/D53915
Diffstat (limited to 'lldb/unittests/Platform')
-rw-r--r-- | lldb/unittests/Platform/PlatformDarwinTest.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lldb/unittests/Platform/PlatformDarwinTest.cpp b/lldb/unittests/Platform/PlatformDarwinTest.cpp index c0a9aef99ef..a388f413ff5 100644 --- a/lldb/unittests/Platform/PlatformDarwinTest.cpp +++ b/lldb/unittests/Platform/PlatformDarwinTest.cpp @@ -55,19 +55,18 @@ TEST(PlatformDarwinTest, TestParseVersionBuildDir) { std::string base = "/Applications/Xcode.app/Contents/Developer/Platforms/"; EXPECT_TRUE(PlatformDarwinTester::SDKSupportsModules( PlatformDarwin::SDKType::iPhoneSimulator, - FileSpec(base + - "iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk", - false))); + FileSpec( + base + + "iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk"))); EXPECT_FALSE(PlatformDarwinTester::SDKSupportsModules( PlatformDarwin::SDKType::iPhoneSimulator, - FileSpec(base + - "iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.2.sdk", - false))); + FileSpec( + base + + "iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.2.sdk"))); EXPECT_TRUE(PlatformDarwinTester::SDKSupportsModules( PlatformDarwin::SDKType::MacOSX, - FileSpec(base + "MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk", - false))); + FileSpec(base + "MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"))); EXPECT_FALSE(PlatformDarwinTester::SDKSupportsModules( PlatformDarwin::SDKType::MacOSX, - FileSpec(base + "MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk", false))); + FileSpec(base + "MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk"))); } |