projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09328b3
)
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)
llvm-svn: 302922
llvm/unittests/Support/Path.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/Support/Path.cpp
b/llvm/unittests/Support/Path.cpp
index
426aff4
..
a4bdcb5
100644
(file)
--- a/
llvm/unittests/Support/Path.cpp
+++ b/
llvm/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);