summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-13 11:51:13 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-03-13 11:51:13 +0000
commit8eacea80ad609ec45d4ee6326ca439b8dfd6769f (patch)
tree5590f04e26bcdff422914c04203b9785a208924a
parent66943c32d2adf2cc600be66db71729d276e42997 (diff)
downloadbcm5719-llvm-8eacea80ad609ec45d4ee6326ca439b8dfd6769f.tar.gz
bcm5719-llvm-8eacea80ad609ec45d4ee6326ca439b8dfd6769f.zip
Appease MSVC builds by #ifdef wrapping runAndGetCommandOutput tests. NFCI.
llvm-svn: 356042
-rw-r--r--llvm/unittests/Support/Host.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/Host.cpp b/llvm/unittests/Support/Host.cpp
index 89080f350aa..ec9dd951a9f 100644
--- a/llvm/unittests/Support/Host.cpp
+++ b/llvm/unittests/Support/Host.cpp
@@ -249,6 +249,7 @@ CPU part : 0x0a1
"tsv110");
}
+#if defined(__APPLE__) || defined(_AIX)
static bool runAndGetCommandOutput(
const char *ExePath, ArrayRef<llvm::StringRef> argv,
std::unique_ptr<char[]> &Buffer, off_t &Size) {
@@ -288,6 +289,7 @@ TEST_F(HostTest, DummyRunAndGetCommandOutputUse) {
// disabled.
(void) runAndGetCommandOutput;
}
+#endif
#if defined(__APPLE__)
TEST_F(HostTest, getMacOSHostVersion) {
OpenPOWER on IntegriCloud