This revision was automatically updated to reflect the committed changes. Closed by commit rL353545: [lldb] [unittests] Disable MainLoopTest::DetectsEOF on NetBSD (authored by mgorny, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D57912?vs=185815&id=186000#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57912/new/ https://reviews.llvm.org/D57912 Files: lldb/trunk/unittests/Host/MainLoopTest.cpp Index: lldb/trunk/unittests/Host/MainLoopTest.cpp =================================================================== --- lldb/trunk/unittests/Host/MainLoopTest.cpp +++ lldb/trunk/unittests/Host/MainLoopTest.cpp @@ -108,7 +108,11 @@ } #ifdef LLVM_ON_UNIX +// NetBSD currently does not report slave pty EOF via kevent +// causing this test to hang forever. +#ifndef __NetBSD__ TEST_F(MainLoopTest, DetectsEOF) { + PseudoTerminal term; ASSERT_TRUE(term.OpenFirstAvailableMaster(O_RDWR, nullptr, 0)); ASSERT_TRUE(term.OpenSlave(O_RDWR | O_NOCTTY, nullptr, 0)); @@ -125,6 +129,7 @@ ASSERT_TRUE(loop.Run().Success()); ASSERT_EQ(1u, callback_count); } +#endif TEST_F(MainLoopTest, Signal) { MainLoop loop;
Index: lldb/trunk/unittests/Host/MainLoopTest.cpp =================================================================== --- lldb/trunk/unittests/Host/MainLoopTest.cpp +++ lldb/trunk/unittests/Host/MainLoopTest.cpp @@ -108,7 +108,11 @@ } #ifdef LLVM_ON_UNIX +// NetBSD currently does not report slave pty EOF via kevent +// causing this test to hang forever. +#ifndef __NetBSD__ TEST_F(MainLoopTest, DetectsEOF) { + PseudoTerminal term; ASSERT_TRUE(term.OpenFirstAvailableMaster(O_RDWR, nullptr, 0)); ASSERT_TRUE(term.OpenSlave(O_RDWR | O_NOCTTY, nullptr, 0)); @@ -125,6 +129,7 @@ ASSERT_TRUE(loop.Run().Success()); ASSERT_EQ(1u, callback_count); } +#endif TEST_F(MainLoopTest, Signal) { MainLoop loop;
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits