File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,10 @@ TEST_F(SocketTest, DomainSocketFromBoundNativeSocket) {
349349 ASSERT_FALSE (EC);
350350 llvm::sys::path::append (name, " test" );
351351
352+ // Skip the test if the $TMPDIR is too long to hold a domain socket.
353+ if (name.size () > 107u )
354+ GTEST_SKIP () << " $TMPDIR is too long to hold a domain socket" ;
355+
352356 DomainSocket socket (true );
353357 Status error = socket.Listen (name, /* backlog=*/ 10 );
354358 ASSERT_THAT_ERROR (error.takeError (), llvm::Succeeded ());
@@ -370,6 +374,10 @@ TEST_F(SocketTest, AbstractSocketFromBoundNativeSocket) {
370374 true );
371375 llvm::sys::path::append (name, " test" );
372376
377+ // Skip the test if the $TMPDIR is too long to hold a domain socket.
378+ if (name.size () > 107u )
379+ GTEST_SKIP () << " $TMPDIR is too long to hold a domain socket" ;
380+
373381 AbstractSocket socket;
374382 Status error = socket.Listen (name, /* backlog=*/ 10 );
375383 ASSERT_THAT_ERROR (error.takeError (), llvm::Succeeded ());
You can’t perform that action at this time.
0 commit comments