mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbann...@apache.org
Subject [mesos] 03/03: Asserted element exists before accessing it.
Date Wed, 26 Sep 2018 20:58:10 GMT
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 <bbannier@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;


Mime
View raw message