From 10d76b6863cb2168cc5607fd70b191216acc851c Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 15 Jan 2018 10:43:31 +0100 Subject: [PATCH] tests: SocketsTest: Fail test on write fail Change-Id: Ib6b778a2225339ebd2eaa80b3fca6ee8d8646b23 --- tests/CommonLibs/SocketsTest.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/CommonLibs/SocketsTest.cpp b/tests/CommonLibs/SocketsTest.cpp index bde86b85..c4e31d83 100644 --- a/tests/CommonLibs/SocketsTest.cpp +++ b/tests/CommonLibs/SocketsTest.cpp @@ -61,6 +61,7 @@ void *testReaderIP(void *param) int main(int argc, char * argv[] ) { + int count; if (signal(SIGALRM, sigalarm_handler) == SIG_ERR) { perror("signal"); @@ -82,7 +83,12 @@ int main(int argc, char * argv[] ) sleep(1); for (int i=0; i