From: Simon Pilgrim Date: Wed, 13 Mar 2019 11:51:13 +0000 (+0000) Subject: Appease MSVC builds by #ifdef wrapping runAndGetCommandOutput tests. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a37b8328d4afcb26be22af7bc6939f6a9878156;p=llvm Appease MSVC builds by #ifdef wrapping runAndGetCommandOutput tests. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356042 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Support/Host.cpp b/unittests/Support/Host.cpp index 89080f350aa..ec9dd951a9f 100644 --- a/unittests/Support/Host.cpp +++ b/unittests/Support/Host.cpp @@ -249,6 +249,7 @@ CPU part : 0x0a1 "tsv110"); } +#if defined(__APPLE__) || defined(_AIX) static bool runAndGetCommandOutput( const char *ExePath, ArrayRef argv, std::unique_ptr &Buffer, off_t &Size) { @@ -288,6 +289,7 @@ TEST_F(HostTest, DummyRunAndGetCommandOutputUse) { // disabled. (void) runAndGetCommandOutput; } +#endif #if defined(__APPLE__) TEST_F(HostTest, getMacOSHostVersion) {