[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
Fri Feb 8 10:56:31 PST 2019
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57912.186000.patch
Type: text/x-patch
Size: 727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190208/672e088a/attachment.bin>
More information about the lldb-commits
mailing list