diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-05-11 21:05:32 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-05-11 21:05:32 +0000 |
commit | 66a0b774937a616ee9f6dac4015263f8f7c83fc0 (patch) | |
tree | 17845f93b079209bbe472a7bbfaea7c99f0557ad | |
parent | ebb7f5c71add74273516c4fe1d3103584a070bac (diff) | |
download | bcm5719-llvm-66a0b774937a616ee9f6dac4015263f8f7c83fc0.tar.gz bcm5719-llvm-66a0b774937a616ee9f6dac4015263f8f7c83fc0.zip |
Conditionally compile a Darwin-only test.
llvm-svn: 332140
-rw-r--r-- | lldb/unittests/Host/HostInfoTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/unittests/Host/HostInfoTest.cpp b/lldb/unittests/Host/HostInfoTest.cpp index 55aa2bda39e..19b305d6f7f 100644 --- a/lldb/unittests/Host/HostInfoTest.cpp +++ b/lldb/unittests/Host/HostInfoTest.cpp @@ -58,6 +58,7 @@ struct HostInfoMacOSXTest : public HostInfoMacOSX { }; +#ifdef __APPLE__ TEST_F(HostInfoTest, MacOSX) { // This returns whatever the POSIX fallback returns. std::string posix = "/usr/lib/liblldb.dylib"; @@ -89,3 +90,4 @@ TEST_F(HostInfoTest, MacOSX) { EXPECT_NE(HostInfoMacOSXTest::ComputeClangDir(GetInputFilePath(xcode), true), HostInfoMacOSXTest::ComputeClangDir(GetInputFilePath(xcode))); } +#endif |