From 5bca41ca50894149b49ba96cd376dc8ea316ce8b Mon Sep 17 00:00:00 2001 From: Galina Kistanova Date: Fri, 12 May 2017 17:00:13 +0000 Subject: [PATCH] Make sure we have actually written what is expected by the test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302922 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index 426aff47c74..a4bdcb5c79a 100644 --- 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(Data.size())); lseek(FD, 0, SEEK_SET); auto Hash = fs::md5_contents(FD); ::close(FD); -- 2.11.0