* tests/test-nonblocking-pipe-main.c: Include progname.h.
(main): Invoke set_program_name.
* modules/nonblocking-pipe-tests (Depends-on): Add progname.
+2012-02-04 Bruno Haible <bruno@clisp.org>
+
+ nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
+ * tests/test-nonblocking-pipe-main.c: Include progname.h.
+ (main): Invoke set_program_name.
+ * modules/nonblocking-pipe-tests (Depends-on): Add progname.
+
2012-02-04 Eric Blake <eblake@redhat.com>
canonicalize-lgpl: fix // handling
unistd
nonblocking
wait-process
+progname
pipe-posix
dup2
environ
#include "nonblocking.h"
#include "wait-process.h"
+#include "progname.h"
#include "macros.h"
#include "test-nonblocking-pipe.h"
int
main (int argc, char *argv[])
{
- const char *child_path = argv[1];
- int test = atoi (argv[2]);
+ const char *child_path;
+ int test;
int fd[2];
int child;
int exitcode;
+ set_program_name (argv[0]);
+
+ child_path = argv[1];
+ test = atoi (argv[2]);
+
/* Create a pipe. */
ASSERT (pipe (fd) >= 0);