提交 13e0279e 编写于 作者: W wkejing

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

Signed-off-by: Nwkejing <wkejing9687@163.com>
上级 3f0d887d
......@@ -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.
先完成此消息的编辑!
想要评论请 注册