From commits-return-24745-archive-asf-public=cust-asf.ponee.io@mesos.apache.org Wed Sep 26 22:58:10 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0276518067B for ; Wed, 26 Sep 2018 22:58:09 +0200 (CEST) Received: (qmail 46970 invoked by uid 500); 26 Sep 2018 20:58:09 -0000 Mailing-List: contact commits-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list commits@mesos.apache.org Received: (qmail 46820 invoked by uid 99); 26 Sep 2018 20:58:08 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2018 20:58:08 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 0CF7982DE1; Wed, 26 Sep 2018 20:58:08 +0000 (UTC) Date: Wed, 26 Sep 2018 20:58:10 +0000 To: "commits@mesos.apache.org" Subject: [mesos] 03/03: Asserted element exists before accessing it. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: bbannier@apache.org In-Reply-To: <153799548787.29204.15328899864423693498@gitbox.apache.org> References: <153799548787.29204.15328899864423693498@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: mesos X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: 16f29ab85a10ef8ba17102b8dd7795e822553b4f X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180926205808.0CF7982DE1@gitbox.apache.org> 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 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 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;