You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bb...@apache.org on 2018/09/26 20:58:10 UTC
[mesos] 03/03: Asserted element exists before accessing it.
This is an automated email from the ASF dual-hosted git repository.
bbannier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 16f29ab85a10ef8ba17102b8dd7795e822553b4f
Author: Benjamin Bannier <bb...@apache.org>
AuthorDate: Fri Sep 21 08:47:50 2018 +0200
Asserted element exists before accessing it.
Review: https://reviews.apache.org/r/68819
---
3rdparty/stout/tests/os/sendfile_tests.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/3rdparty/stout/tests/os/sendfile_tests.cpp b/3rdparty/stout/tests/os/sendfile_tests.cpp
index 958aa66..e334f48 100644
--- a/3rdparty/stout/tests/os/sendfile_tests.cpp
+++ b/3rdparty/stout/tests/os/sendfile_tests.cpp
@@ -169,8 +169,8 @@ TEST_F(OsSendfileTest, Sendfile)
Try<ssize_t, SocketError> result =
os::sendfile(s[0], fd.get(), 0, LOREM_IPSUM.size());
- int _errno = result.error().code;
ASSERT_ERROR(result);
+ int _errno = result.error().code;
#ifdef __linux__
ASSERT_EQ(EPIPE, _errno) << result.error().message;