commit | b587180fa7f38f61f5512a00a4812a8b20335619 | [log] [tgz] |
---|---|---|
author | Michael J. Spencer <bigcheesegs@gmail.com> | Sat Jan 15 18:52:49 2011 +0000 |
committer | Michael J. Spencer <bigcheesegs@gmail.com> | Sat Jan 15 18:52:49 2011 +0000 |
tree | c4a82ca9933e194f290bcd1945a81872ad2c2084 | |
parent | 7887466adca965a40ad14231009bfde9e0e07946 [diff] [blame] |
Unittests/Support/Path: Tweak test. llvm-svn: 123546
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index fa2b45f..1f67f13 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp
@@ -230,7 +230,7 @@ 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);