提交 8d45f42f 编写于 作者: O openharmony_ci 提交者: Gitee

!1010 【communication_lite】【L1-lwip】忽略 SIGPIPE 信号,避免测试用例testInvalidParameter在send时挂掉

Merge pull request !1010 from wkejing/master
......@@ -21,6 +21,7 @@
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <signal.h>
#include "securec.h"
using namespace std;
......@@ -41,7 +42,11 @@ static pthread_barrier_t g_barrier;
class ActsLwipTest : public testing::Test {
protected:
// SetUpTestCase: Testsuit setup, run before 1st testcase
static void SetUpTestCase(void) {}
static void SetUpTestCase(void)
{
// Ignore SIGPIPE Signals
signal(SIGPIPE, SIG_IGN);
}
// TearDownTestCase: Testsuit teardown, run after last testcase
static void TearDownTestCase(void) {}
// Testcase setup
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册