X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-strsignal.c;h=8868346e6fdb49249c67df897ab546e576a4e7c9;hb=7da6c6f9a62e4a00ad88beb04f492b28fe517699;hp=9bd8133e7d858684608bd1670a78cc02f6546ef9;hpb=f94627382dd83f0b4a5572a08257976e21d2f8d0;p=gnulib.git diff --git a/tests/test-strsignal.c b/tests/test-strsignal.c index 9bd8133e7..8868346e6 100644 --- a/tests/test-strsignal.c +++ b/tests/test-strsignal.c @@ -30,6 +30,7 @@ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + fflush (stderr); \ abort (); \ } \ } \ @@ -45,7 +46,11 @@ int main (int argc, char **argv) { - char *str; + /* Work around bug in cygwin 1.5.25 by declaring str as + const char *, even though strsignal is supposed to return char *. + At any rate, this doesn't hurt, since POSIX 200x states that "The + string pointed to shall not be modified by the application." */ + const char *str; /* We try a couple of signals, since not all signals are supported everywhere. Notwithstanding the #ifdef for neatness, SIGINT should in