tests: use macros.h in more places
authorEric Blake <ebb9@byu.net>
Fri, 25 Dec 2009 23:06:48 +0000 (16:06 -0700)
committerEric Blake <ebb9@byu.net>
Sat, 26 Dec 2009 18:03:54 +0000 (11:03 -0700)
commit9a3454362bbd242121df2ba63aef92fc96a1e390
tree9f18767510e5dcd7e8a6b20b358582882d53b119
parenta93454a87ee0ea0bcd92ea55c1eb87330119d438
tests: use macros.h in more places

Make the ASSERT macro a bit more reusable.

* tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
(ASSERT_STREAM): Provide default of stderr.
* tests/test-dirent-safer.c: Include macros.h, using alternate
stream for assertions.
* tests/test-dup-safer.c: Likewise.
* tests/test-freopen-safer.c: Likewise.
* tests/test-getopt.c: Likewise.
* tests/test-openat-safer.c: Likewise.
* tests/test-pipe.c: Likewise.
* tests/test-popen-safer.c: Likewise.
* modules/dirent-safer-tests (Files): Include macros.h.
* modules/unistd-safer-tests (Files): Likewise.
* modules/freopen-safer-tests (Files): Likewise.
* modules/getopt-posix-tests (Files): Likewise.
* modules/openat-safer-tests (Files): Likewise.
* modules/pipe-tests (Files): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 files changed:
ChangeLog
modules/dirent-safer-tests
modules/freopen-safer-tests
modules/getopt-posix-tests
modules/openat-safer-tests
modules/pipe-tests
modules/unistd-safer-tests
tests/macros.h
tests/test-dirent-safer.c
tests/test-dup-safer.c
tests/test-freopen-safer.c
tests/test-getopt.c
tests/test-openat-safer.c
tests/test-pipe.c
tests/test-popen-safer.c