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) {
349
349
ASSERT_FALSE (EC);
350
350
llvm::sys::path::append (name, " test" );
351
351
352
+ // Skip the test if the $TMPDIR is too long to hold a domain socket.
353
+ if (name.size () > 107u )
354
+ return ;
355
+
352
356
DomainSocket socket (true );
353
357
Status error = socket.Listen (name, /* backlog=*/ 10 );
354
358
ASSERT_THAT_ERROR (error.takeError (), llvm::Succeeded ());
@@ -370,6 +374,10 @@ TEST_F(SocketTest, AbstractSocketFromBoundNativeSocket) {
370
374
true );
371
375
llvm::sys::path::append (name, " test" );
372
376
377
+ // Skip the test if the $TMPDIR is too long to hold a domain socket.
378
+ if (name.size () > 107u )
379
+ return ;
380
+
373
381
AbstractSocket socket;
374
382
Status error = socket.Listen (name, /* backlog=*/ 10 );
375
383
ASSERT_THAT_ERROR (error.takeError (), llvm::Succeeded ());
You can’t perform that action at this time.
0 commit comments