diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-15 18:52:49 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-15 18:52:49 +0000 |
commit | 248f9f280756a1d6eb20a97ee4ab457ec18170f6 (patch) | |
tree | a5cbadb420935be7794c4e092e74939388a00737 /unittests/Support | |
parent | b33594be3de0e73e0b79f5d9827228d58eef62fa (diff) |
Unittests/Support/Path: Tweak test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r-- | unittests/Support/Path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index fa2b45f03b..1f67f13e97 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -230,7 +230,7 @@ TEST_F(FileSystemTest, Magic) { ASSERT_FALSE(file.has_error()); StringRef magic(i->magic_str, i->magic_str_len); file << magic; - file.flush(); + file.close(); bool res = false; ASSERT_NO_ERROR(fs::has_magic(file_pathname.c_str(), magic, res)); EXPECT_TRUE(res); |