X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-strstr.c;h=8a05e883758ff5f2d1a34d305357e907025aa59c;hb=b6d87f536521a59758453d8dbd071e7cd6efc39d;hp=be75a669814048354cb5b152fdb310cef459aeb4;hpb=7dd49d2811431dceac40473f3d65d13f6552cce4;p=gnulib.git diff --git a/tests/test-strstr.c b/tests/test-strstr.c index be75a6698..8a05e8837 100644 --- a/tests/test-strstr.c +++ b/tests/test-strstr.c @@ -19,6 +19,7 @@ #include +#include #include #include #include @@ -29,6 +30,7 @@ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + fflush (stderr); \ abort (); \ } \ } \ @@ -42,6 +44,7 @@ main (int argc, char *argv[]) caused by SIGALRM. All known platforms that lack alarm also have a quadratic strstr, and the replacement strstr is known to not take too long. */ + signal (SIGALRM, SIG_DFL); alarm (50); #endif