Skip to content

Commit 8cfc092

Browse files
committed
Use GTEST_SKIP instead of return
1 parent 65de315 commit 8cfc092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/unittests/Host/SocketTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ TEST_F(SocketTest, DomainSocketFromBoundNativeSocket) {
351351

352352
// Skip the test if the $TMPDIR is too long to hold a domain socket.
353353
if (name.size() > 107u)
354-
return;
354+
GTEST_SKIP() << "$TMPDIR is too long to hold a domain socket";
355355

356356
DomainSocket socket(true);
357357
Status error = socket.Listen(name, /*backlog=*/10);
@@ -376,7 +376,7 @@ TEST_F(SocketTest, AbstractSocketFromBoundNativeSocket) {
376376

377377
// Skip the test if the $TMPDIR is too long to hold a domain socket.
378378
if (name.size() > 107u)
379-
return;
379+
GTEST_SKIP() << "$TMPDIR is too long to hold a domain socket";
380380

381381
AbstractSocket socket;
382382
Status error = socket.Listen(name, /*backlog=*/10);

0 commit comments

Comments
 (0)