From: Waldemar Brodkorb Date: Thu, 28 Aug 2014 10:31:29 +0000 (+0200) Subject: test: get out of the endless while loop, when bind failed X-Git-Url: http://git.osdn.net/view?p=uclinux-h8%2FuClibc.git;a=commitdiff_plain;h=697dbb016e4bc63d20a7c871a9580e7dce32d1b0 test: get out of the endless while loop, when bind failed When bind() fails in this test, then /tmp get filled up with temp files and upcoming tests will fail, because they need to create temp files, too. Better exit from the loop. Test still needs to be investigated to fix the failing bind(). Signed-off-by: Waldemar Brodkorb Signed-off-by: Bernhard Reutner-Fischer --- diff --git a/test/nptl/tst-cancel4.c b/test/nptl/tst-cancel4.c index 53abf83ee..4ba40450e 100644 --- a/test/nptl/tst-cancel4.c +++ b/test/nptl/tst-cancel4.c @@ -1015,6 +1015,8 @@ tf_accept (void *arg) if (++tries > 10) { printf ("%s: too many unsuccessful bind calls\n", __FUNCTION__); + /* prevent endless loop, when bind fails forever */ + exit (1); } strcpy (sun.sun_path, "/tmp/tst-cancel4-socket-1-XXXXXX");