summaryrefslogtreecommitdiff
path: root/lldb/unittests/Platform
AgeCommit message (Collapse)Author
2018-11-01[FileSystem] Move path resolution logic out of FileSpecJonas Devlieghere
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
2018-10-25Fix a bug PlatformDarwin::SDKSupportsModule.Adrian Prantl
This fixes a bug PlatformDarwin::SDKSupportsModule introduced by https://reviews.llvm.org/D47889. VersionTuple::tryParse() can deal with an optional third (micro) component, but the parse will fail when there are extra characters after the version number (e.g.: trying to parse the substring "12.0.sdk" out of "iPhoneSimulator12.0.sdk" fails after that patch). Fixed here by stripping the ".sdk" suffix first. (Part of) rdar://problem/45041492 Differential Revision https://reviews.llvm.org/D53677
2018-06-18Use llvm::VersionTuple instead of manual version marshallingPavel Labath
Summary: This has multiple advantages: - we need only one function argument/instance variable instead of three - no need to default initialize variables - no custom parsing code - VersionTuple has comparison operators, which makes version comparisons much simpler Reviewers: zturner, friss, clayborg, jingham Subscribers: emaste, lldb-commits Differential Revision: https://reviews.llvm.org/D47889
2017-02-01[CMake] Update unit tests with accurate dependenciesChris Bieneman
This is extending the updates from r293696 to the LLDB unit tests.
2016-10-08Fix compiler warnings in PlatformDarwinTest.cppPavel Labath
2016-09-17Convert many functions to use StringRefs.Zachary Turner
Where possible, remove the const char* version. To keep the risk and impact here minimal, I've only done the simplest functions. In the process, I found a few opportunities for adding some unit tests, so I added those as well. Tested on Windows, Linux, and OSX.