[PATCH 1/2] regex: port to mingw's recent addition of undeclared alarm

2013-03-11 Thread Eric Blake
On mingw (at least, when cross-compiling with Fedora 18's mingw32-headers-2.0.999-0.15.trunk.20121110.fc18.noarch build), compilation of test-regex fails: test-regex.c: In function 'main': test-regex.c:42:11: error: 'SIGALRM' undeclared (first use in this function) test-regex.c:42:11: note: each u

[PATCH 2/2] tests: make it easier to bypass alarm time in debugger

2013-03-11 Thread Eric Blake
While auditing alarm usage, I noticed that test-regex had a nice idiom that made it easier to disable an alarm under glibc. Use it elsewhere, so future copy-and-paste will preserve the idiom. * tests/test-file-has-acl.c (main): Allow gdb to override alarm. * tests/test-memmem.c (main): Likewise.

alarm() on latest mingw

2013-03-11 Thread Eric Blake
test-regex currently fails to compile on mingw, when using the mingw64 32-bit cross-compiler shipped in cygwin: test-regex.c: In function 'main': test-regex.c:42:11: error: 'SIGALRM' undeclared (first use in this function) test-regex.c:42:11: note: each undeclared identifier is reported only once

Re: test-fclose coredumps on AIX 5 thru 7

2013-03-11 Thread Paul Eggert
On 03/11/2013 12:35 AM, Gary V. Vaughan wrote: > Anything I can do to help debug this failure? That looks like an AIX bug, no? Perhaps file a bug with IBM? I'm not sure it's gnulib's job to work around that bug

[PATCH] putenv: avoid compilation warning on mingw

2013-03-11 Thread Eric Blake
On mingw, I got: ../../tests/putenv.c: In function '_unsetenv': ../../tests/putenv.c:65:10: warning: unused variable 'ep' * lib/putenv.c (_unsetenv): Protect variable declaration. (putenv): Fix indentation. Signed-off-by: Eric Blake --- ChangeLog| 6 + lib/putenv.c | 76 ++

test-fclose coredumps on AIX 5 thru 7

2013-03-11 Thread Gary V. Vaughan
On all the AIX machines I have access to, with all compiler optimisations turned off, I get this: aix7% make check ... xlc -qlanglvl=extc99 -g -o test-fclose test-fclose.o libtests.a ../lib/libm4.a libtests.a ... PASS: test-errno