Author: jingham Date: Tue Dec 20 18:12:54 2016 New Revision: 290216 URL: http://llvm.org/viewvc/llvm-project?rev=290216&view=rev Log: Ignore SIGPIPE in the mini-driver used by these tests.
We're seeing some very occasional failures in these tests where the mini-driver dies with a SIGPIPE. We don't use SIGPIPE for anything, and the main lldb driver program already ignores SIGPIPE, so ignoring it in the mini-driver is a good way to remove these spurious failures. <rdar://problem/29740488> Modified: lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template Modified: lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template?rev=290216&r1=290215&r2=290216&view=diff ============================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template (original) +++ lldb/trunk/packages/Python/lldbsuite/test/api/multithreaded/driver.cpp.template Tue Dec 20 18:12:54 2016 @@ -6,6 +6,9 @@ #include <iterator> #include <string> #include <vector> +#if !defined(_MSC_VER) + #include <signal.h> +#endif %include_SB_APIs% @@ -17,6 +20,13 @@ using namespace lldb; void test(SBDebugger &dbg, std::vector<string> args); int main(int argc, char** argv) { + +// Ignore SIGPIPE. The lldb driver does this as well, +// because we seem to get spurious SIGPIPES on some +// Unixen that take the driver down. +#if !defined(_MSC_VER) + signal(SIGPIPE, SIG_IGN); +#endif int code = 0; SBDebugger::Initialize(); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits