summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/raw_pwrite_stream_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/raw_pwrite_stream_test.cpp')
-rw-r--r--llvm/unittests/Support/raw_pwrite_stream_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/raw_pwrite_stream_test.cpp b/llvm/unittests/Support/raw_pwrite_stream_test.cpp
index 4e521a04728..a62f6bacb07 100644
--- a/llvm/unittests/Support/raw_pwrite_stream_test.cpp
+++ b/llvm/unittests/Support/raw_pwrite_stream_test.cpp
@@ -50,6 +50,7 @@ TEST(raw_pwrite_ostreamTest, TestFD) {
#endif
}
+#ifdef LLVM_ON_UNIX
TEST(raw_pwrite_ostreamTest, TestDevNull) {
int FD;
sys::fs::openFileForWrite("/dev/null", FD, sys::fs::F_None);
@@ -59,4 +60,5 @@ TEST(raw_pwrite_ostreamTest, TestDevNull) {
OS.pwrite(Test.data(), Test.size(), 0);
OS.pwrite(Test.data(), Test.size(), 0);
}
+#endif
}
OpenPOWER on IntegriCloud