mgorny created this revision. mgorny added reviewers: labath, krytarowski. Herald added a project: LLDB. mgorny updated this revision to Diff 185815.
The NetBSD kernel currently does not support detecting closed slave pty via kevent on master pty. This causes the test to hang forever. To avoid that, disable the test until the kernel is fixed. https://reviews.llvm.org/D57912 Files: lldb/unittests/Host/MainLoopTest.cpp Index: lldb/unittests/Host/MainLoopTest.cpp =================================================================== --- lldb/unittests/Host/MainLoopTest.cpp +++ lldb/unittests/Host/MainLoopTest.cpp @@ -108,6 +108,9 @@ } #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)); @@ -125,6 +128,7 @@ ASSERT_TRUE(loop.Run().Success()); ASSERT_EQ(1u, callback_count); } +#endif TEST_F(MainLoopTest, Signal) { MainLoop loop;
Index: lldb/unittests/Host/MainLoopTest.cpp =================================================================== --- lldb/unittests/Host/MainLoopTest.cpp +++ lldb/unittests/Host/MainLoopTest.cpp @@ -108,6 +108,9 @@ } #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)); @@ -125,6 +128,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