OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f366f4c
)
Make sure we have actually written what is expected by the test.
author
Galina Kistanova
<gkistanova@gmail.com>
Fri, 12 May 2017 17:00:13 +0000
(17:00 +0000)
committer
Galina Kistanova
<gkistanova@gmail.com>
Fri, 12 May 2017 17:00:13 +0000
(17:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302922
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
426aff4
..
a4bdcb5
100644
(file)
--- a/
unittests/Support/Path.cpp
+++ b/
unittests/Support/Path.cpp
@@
-1047,7
+1047,7
@@
TEST_F(FileSystemTest, MD5) {
SmallString<64> TempPath;
ASSERT_NO_ERROR(fs::createTemporaryFile("prefix", "temp", FD, TempPath));
StringRef Data("abcdefghijklmnopqrstuvwxyz");
-
write(FD, Data.data(), Data.size(
));
+
ASSERT_EQ(write(FD, Data.data(), Data.size()), static_cast<ssize_t>(Data.size()
));
lseek(FD, 0, SEEK_SET);
auto Hash = fs::md5_contents(FD);
::close(FD);