From 8c18fcafeeaec82c81339e27952e54cf16146995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Thu, 20 Apr 2023 16:47:44 +0000 Subject: better error on failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: I1ac825f27ada81c8a769d2bd6ff7fb52360a5b4a --- tests/binder_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/binder_test.cpp b/tests/binder_test.cpp index 423d3833..c85de3ae 100644 --- a/tests/binder_test.cpp +++ b/tests/binder_test.cpp @@ -1068,13 +1068,13 @@ TEST_F(NetdBinderTest, SocketDestroyLinkLocal) { // The client sockets on sTun2 are closed, but the ones on sTun1 remain open. char buf[1024]; EXPECT_EQ(-1, read(c2, buf, sizeof(buf))); - EXPECT_TRUE(errno == ECONNABORTED || errno == ECONNRESET); + EXPECT_TRUE(errno == ECONNABORTED || errno == ECONNRESET) << "errno:" << errno; // The blocking read above ensures that SOCK_DESTROY has completed. EXPECT_EQ(3, write(a1, "foo", 3)); EXPECT_EQ(3, read(c1, buf, sizeof(buf))); EXPECT_EQ(-1, write(a2, "foo", 3)); - EXPECT_TRUE(errno == ECONNABORTED || errno == ECONNRESET); + EXPECT_TRUE(errno == ECONNABORTED || errno == ECONNRESET) << "errno:" << errno; // Check the server sockets too. EXPECT_EQ(-1, accept(s1, nullptr, 0)); -- cgit v1.2.3