comparison modules/freopen-safer-tests @ 12510:618282a72d9b

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>
author Eric Blake <ebb9@byu.net>
date Fri, 25 Dec 2009 16:06:48 -0700
parents b156d2d1b827
children
comparison
equal deleted inserted replaced
12509:aa547f8201c1 12510:618282a72d9b
1 Files: 1 Files:
2 tests/test-freopen-safer.c 2 tests/test-freopen-safer.c
3 tests/macros.h
3 4
4 Depends-on: 5 Depends-on:
5 6
6 configure.ac: 7 configure.ac:
7 8