* tests/test-spawn-pipe-main.c: Include progname.h.
(main): Invoke set_program_name.
* modules/spawn-pipe-tests (Depends-on): Add progname.
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.
Depends-on:
close
+progname
configure.ac:
#include "spawn-pipe.h"
#include "wait-process.h"
+#include "progname.h"
#include <stdbool.h>
#include <stdio.h>
int test;
int fd;
+ set_program_name (argv[0]);
+
if (argc != 3)
{
fprintf (stderr, "%s: need 2 arguments\n", argv[0]);