Skip to content

Commit 01486b2

Browse files
committedFeb 8, 2019
[lldb] [unittests] Disable MainLoopTest::DetectsEOF on NetBSD
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. Differential Revision: https://reviews.llvm.org/D57912 llvm-svn: 353545
1 parent 3d0213e commit 01486b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎lldb/unittests/Host/MainLoopTest.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ TEST_F(MainLoopTest, TerminatesImmediately) {
108108
}
109109

110110
#ifdef LLVM_ON_UNIX
111+
// NetBSD currently does not report slave pty EOF via kevent
112+
// causing this test to hang forever.
113+
#ifndef __NetBSD__
111114
TEST_F(MainLoopTest, DetectsEOF) {
115+
112116
PseudoTerminal term;
113117
ASSERT_TRUE(term.OpenFirstAvailableMaster(O_RDWR, nullptr, 0));
114118
ASSERT_TRUE(term.OpenSlave(O_RDWR | O_NOCTTY, nullptr, 0));
@@ -125,6 +129,7 @@ TEST_F(MainLoopTest, DetectsEOF) {
125129
ASSERT_TRUE(loop.Run().Success());
126130
ASSERT_EQ(1u, callback_count);
127131
}
132+
#endif
128133

129134
TEST_F(MainLoopTest, Signal) {
130135
MainLoop loop;

0 commit comments

Comments
 (0)
Please sign in to comment.