diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | modules/spawn-pipe-tests | 1 | ||||
-rw-r--r-- | tests/test-spawn-pipe-main.c | 3 |
3 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2012-02-04 Bruno Haible <bruno@clisp.org> + spawn-pipe tests: Fix a NULL program name in a diagnostic. + * tests/test-spawn-pipe-main.c: Include progname.h. + (main): Invoke set_program_name. + * modules/spawn-pipe-tests (Depends-on): Add progname. + nonblocking-socket tests: Fix a NULL program name in a diagnostic. * tests/test-nonblocking-socket-main.c: Include progname.h. (main): Invoke set_program_name. diff --git a/modules/spawn-pipe-tests b/modules/spawn-pipe-tests index f7831d5e4d..e17eece533 100644 --- a/modules/spawn-pipe-tests +++ b/modules/spawn-pipe-tests @@ -6,6 +6,7 @@ tests/macros.h Depends-on: close +progname configure.ac: diff --git a/tests/test-spawn-pipe-main.c b/tests/test-spawn-pipe-main.c index 0fa145abf2..8f8204ffee 100644 --- a/tests/test-spawn-pipe-main.c +++ b/tests/test-spawn-pipe-main.c @@ -19,6 +19,7 @@ #include "spawn-pipe.h" #include "wait-process.h" +#include "progname.h" #include <stdbool.h> #include <stdio.h> @@ -80,6 +81,8 @@ main (int argc, char *argv[]) int test; int fd; + set_program_name (argv[0]); + if (argc != 3) { fprintf (stderr, "%s: need 2 arguments\n", argv[0]); |