This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgPau Espin Pedrol has submitted this change and it was merged. Change subject: tests: SocketsTest: Fail test on write fail ...................................................................... tests: SocketsTest: Fail test on write fail Change-Id: Ib6b778a2225339ebd2eaa80b3fca6ee8d8646b23 --- M tests/CommonLibs/SocketsTest.cpp 1 file changed, 7 insertions(+), 1 deletion(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/tests/CommonLibs/SocketsTest.cpp b/tests/CommonLibs/SocketsTest.cpp index bde86b8..c4e31d8 100644 --- a/tests/CommonLibs/SocketsTest.cpp +++ b/tests/CommonLibs/SocketsTest.cpp @@ -61,6 +61,7 @@ int main(int argc, char * argv[] ) { + int count; if (signal(SIGALRM, sigalarm_handler) == SIG_ERR) { perror("signal"); @@ -82,7 +83,12 @@ sleep(1); for (int i=0; i<gNumToSend; i++) { - socket1.write("Hello IP land"); + CERR("write"); + count = socket1.write("Hello IP land"); + if (count < 0) { + COUT("FAIL: write"); + exit(EXIT_FAILURE); + } sleep(1); } -- To view, visit https://gerrit.osmocom.org/5782 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ib6b778a2225339ebd2eaa80b3fca6ee8d8646b23 Gerrit-PatchSet: 2 Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>