[Lldb-commits] [lldb] r332140 - Conditionally compile a Darwin-only test.
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri May 11 14:05:33 PDT 2018
Author: adrian
Date: Fri May 11 14:05:32 2018
New Revision: 332140
URL: http://llvm.org/viewvc/llvm-project?rev=332140&view=rev
Log:
Conditionally compile a Darwin-only test.
Modified:
lldb/trunk/unittests/Host/HostInfoTest.cpp
Modified: lldb/trunk/unittests/Host/HostInfoTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Host/HostInfoTest.cpp?rev=332140&r1=332139&r2=332140&view=diff
==============================================================================
--- lldb/trunk/unittests/Host/HostInfoTest.cpp (original)
+++ lldb/trunk/unittests/Host/HostInfoTest.cpp Fri May 11 14:05:32 2018
@@ -58,6 +58,7 @@ struct HostInfoMacOSXTest : public HostI
};
+#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
More information about the lldb-commits
mailing list