[Lldb-commits] [PATCH] D57912: [lldb] [unittests] Disable MainLoopTest::DetectsEOF on NetBSD
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 7 10:31:24 PST 2019
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57912.185815.patch
Type: text/x-patch
Size: 643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190207/d41c74ac/attachment-0001.bin>
More information about the lldb-commits
mailing list