diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 |
commit | eb11fae6d08f479c0799db45860a98af528fa6e7 (patch) | |
tree | 44d492a50c8c1a7eb8e2d17ea3360ec4d066f042 /unittests/Support/raw_pwrite_stream_test.cpp | |
parent | b8a2042aa938069e862750553db0e4d82d25822c (diff) |
Notes
Diffstat (limited to 'unittests/Support/raw_pwrite_stream_test.cpp')
-rw-r--r-- | unittests/Support/raw_pwrite_stream_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Support/raw_pwrite_stream_test.cpp b/unittests/Support/raw_pwrite_stream_test.cpp index 249780a8c829..a528fd25b932 100644 --- a/unittests/Support/raw_pwrite_stream_test.cpp +++ b/unittests/Support/raw_pwrite_stream_test.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "llvm/ADT/SmallString.h" +#include "llvm/Config/llvm-config.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/FileUtilities.h" #include "llvm/Support/raw_ostream.h" @@ -83,7 +84,7 @@ TEST(raw_pwrite_ostreamTest, TestFD) { #ifdef LLVM_ON_UNIX TEST(raw_pwrite_ostreamTest, TestDevNull) { int FD; - sys::fs::openFileForWrite("/dev/null", FD, sys::fs::F_None); + sys::fs::openFileForWrite("/dev/null", FD, sys::fs::CD_OpenExisting); raw_fd_ostream OS(FD, true); OS << "abcd"; StringRef Test = "test"; |