* tests/test-nonblocking-socket-main.c: Include progname.h.
(main): Invoke set_program_name.
* modules/nonblocking-socket-tests (Depends-on): Add progname.
2012-02-04 Bruno Haible <bruno@clisp.org>
+ 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.
+ * modules/nonblocking-socket-tests (Depends-on): Add progname.
+
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.
sys_socket
nonblocking
wait-process
+progname
environ
posix_spawnp
netinet_in
#include "nonblocking.h"
#include "wait-process.h"
+#include "progname.h"
#include "macros.h"
#include "socket-server.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 server;
int port;
int child;
int server_socket;
int exitcode;
+ set_program_name (argv[0]);
+
+ child_path = argv[1];
+ test = atoi (argv[2]);
+
/* Create a server socket. */
server = create_server (0, 1, &port);