summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-12-25 16:06:48 -0700
committerEric Blake <ebb9@byu.net>2009-12-26 11:03:54 -0700
commit9a3454362bbd242121df2ba63aef92fc96a1e390 (patch)
tree9f18767510e5dcd7e8a6b20b358582882d53b119 /modules
parenta93454a87ee0ea0bcd92ea55c1eb87330119d438 (diff)
downloadgnulib-9a3454362bbd242121df2ba63aef92fc96a1e390.tar.gz
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>
Diffstat (limited to 'modules')
-rw-r--r--modules/dirent-safer-tests1
-rw-r--r--modules/freopen-safer-tests1
-rw-r--r--modules/getopt-posix-tests1
-rw-r--r--modules/openat-safer-tests1
-rw-r--r--modules/pipe-tests1
-rw-r--r--modules/unistd-safer-tests1
6 files changed, 6 insertions, 0 deletions
diff --git a/modules/dirent-safer-tests b/modules/dirent-safer-tests
index da87778917..2bc95933fd 100644
--- a/modules/dirent-safer-tests
+++ b/modules/dirent-safer-tests
@@ -1,5 +1,6 @@
Files:
tests/test-dirent-safer.c
+tests/macros.h
Depends-on:
dup2
diff --git a/modules/freopen-safer-tests b/modules/freopen-safer-tests
index 9511880a29..048d8a2a44 100644
--- a/modules/freopen-safer-tests
+++ b/modules/freopen-safer-tests
@@ -1,5 +1,6 @@
Files:
tests/test-freopen-safer.c
+tests/macros.h
Depends-on:
diff --git a/modules/getopt-posix-tests b/modules/getopt-posix-tests
index 438b6e4c1d..9c73d08b7b 100644
--- a/modules/getopt-posix-tests
+++ b/modules/getopt-posix-tests
@@ -1,4 +1,5 @@
Files:
+tests/macros.h
tests/signature.h
tests/test-getopt.c
tests/test-getopt.h
diff --git a/modules/openat-safer-tests b/modules/openat-safer-tests
index 20bf3822d2..1f0b158fc0 100644
--- a/modules/openat-safer-tests
+++ b/modules/openat-safer-tests
@@ -1,5 +1,6 @@
Files:
tests/test-openat-safer.c
+tests/macros.h
Depends-on:
diff --git a/modules/pipe-tests b/modules/pipe-tests
index 14d1e0fef1..0e31a865a6 100644
--- a/modules/pipe-tests
+++ b/modules/pipe-tests
@@ -1,6 +1,7 @@
Files:
tests/test-pipe.sh
tests/test-pipe.c
+tests/macros.h
Depends-on:
progname
diff --git a/modules/unistd-safer-tests b/modules/unistd-safer-tests
index a6da5a9bd5..cc4b97ab3b 100644
--- a/modules/unistd-safer-tests
+++ b/modules/unistd-safer-tests
@@ -1,5 +1,6 @@
Files:
tests/test-dup-safer.c
+tests/macros.h
Depends-on:
binary-io