llvm.org GIT mirror llvm / 248f9f2
Unittests/Support/Path: Tweak test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123546 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
229229 ASSERT_FALSE(file.has_error());
230230 StringRef magic(i->magic_str, i->magic_str_len);
231231 file << magic;
232 file.flush();
232 file.close();
233233 bool res = false;
234234 ASSERT_NO_ERROR(fs::has_magic(file_pathname.c_str(), magic, res));
235235 EXPECT_TRUE(res);