tests: make it easier to bypass alarm time in debugger
authorEric Blake <eblake@redhat.com>
Mon, 11 Mar 2013 21:40:32 +0000 (15:40 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 11 Mar 2013 21:40:32 +0000 (15:40 -0600)
commita8d9f4635238f845bb76269a54fbb2c55255d365
tree4fa4812ca43cfc9d9eaed017e7d480298d080cba
parent6169015de81eaa4f8148d29abcd640b4f4ab1b56
tests: make it easier to bypass alarm time in debugger

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.
* tests/test-passfd.c (main): Likewise.
* tests/test-ptsname.c (main): Likewise.
* tests/test-ptsname_r.c (main): Likewise.
* tests/test-strcasestr.c (main): Likewise.
* tests/test-strstr.c (main): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
tests/test-file-has-acl.c
tests/test-memmem.c
tests/test-passfd.c
tests/test-ptsname.c
tests/test-ptsname_r.c
tests/test-strcasestr.c
tests/test-strstr.c