projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b33594b
)
Unittests/Support/Path: Tweak test.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Sat, 15 Jan 2011 18:52:49 +0000
(18:52 +0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Sat, 15 Jan 2011 18:52:49 +0000
(18:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123546
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Support/Path.cpp
patch
|
blob
|
history
diff --git
a/unittests/Support/Path.cpp
b/unittests/Support/Path.cpp
index fa2b45f03b3296e533553c4eec95268a82487fba..1f67f13e97e45a14342d94f0ae75371c6f84ab52 100644
(file)
--- 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);