* modules/openat-tests (Depends-on): Add progname.
* modules/fdopendir-tests (Depends-on): Likewise.
* tests/test-fchownat.c: Include progname.h.
(main): Call set_program_name.
* tests/test-fstatat.c: Include progname.h.
(main): Call set_program_name.
* tests/test-mkdirat.c: Include progname.h.
(main): Call set_program_name.
* tests/test-openat.c: Include progname.h.
(main): Call set_program_name.
* tests/test-unlinkat.c: Include progname.h.
(main): Call set_program_name.
* tests/test-fdopendir.c: Include progname.h.
(main): Call set_program_name.
+2011-06-18 Bruno Haible <bruno@clisp.org>
+
+ openat, fdopendir tests: Fix link errors.
+ * modules/openat-tests (Depends-on): Add progname.
+ * modules/fdopendir-tests (Depends-on): Likewise.
+ * tests/test-fchownat.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-fstatat.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-mkdirat.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-openat.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-unlinkat.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-fdopendir.c: Include progname.h.
+ (main): Call set_program_name.
+
2011-06-18 Bruno Haible <bruno@clisp.org>
Doc update.
Depends-on:
open
+progname
configure.ac:
ignore-value
mgetgroups
pathmax
+progname
usleep
stat-time
symlink
#include "mgetgroups.h"
#include "openat.h"
+#include "progname.h"
#include "stat-time.h"
#include "ignore-value.h"
#include "macros.h"
}
int
-main (void)
+main (int argc _GL_UNUSED, char *argv[])
{
int result1; /* Skip because of no chown/symlink support. */
int result2; /* Skip because of no lchown support. */
+ set_program_name (argv[0]);
+
/* Clean up any trash from prior testsuite runs. */
ignore_value (system ("rm -rf " BASE "*"));
#include <fcntl.h>
#include <unistd.h>
+#include "progname.h"
#include "macros.h"
int
-main (void)
+main (int argc _GL_UNUSED, char *argv[])
{
DIR *d;
int fd;
+ set_program_name (argv[0]);
+
/* A non-directory cannot be turned into a directory stream. */
fd = open ("test-fdopendir.tmp", O_RDONLY | O_CREAT, 0600);
ASSERT (0 <= fd);
#include "openat.h"
#include "pathmax.h"
+#include "progname.h"
#include "same-inode.h"
#include "ignore-value.h"
#include "macros.h"
}
int
-main (void)
+main (int argc _GL_UNUSED, char *argv[])
{
int result;
+ set_program_name (argv[0]);
+
/* Remove any leftovers from a previous partial run. */
ignore_value (system ("rm -rf " BASE "*"));
#include <stdlib.h>
#include <unistd.h>
+#include "progname.h"
#include "ignore-value.h"
#include "macros.h"
}
int
-main (void)
+main (int argc _GL_UNUSED, char *argv[])
{
int result;
+ set_program_name (argv[0]);
+
/* Clean up any trash from prior testsuite runs. */
ignore_value (system ("rm -rf " BASE "*"));
#include <stdio.h>
#include <unistd.h>
+#include "progname.h"
#include "macros.h"
#define BASE "test-openat.t"
}
int
-main (void)
+main (int argc _GL_UNUSED, char *argv[])
{
int result;
+ set_program_name (argv[0]);
+
/* Basic checks. */
result = test_open (do_open, false);
dfd = open (".", O_RDONLY);
#include <stdlib.h>
#include <sys/stat.h>
+#include "progname.h"
#include "unlinkdir.h"
#include "ignore-value.h"
#include "macros.h"
}
int
-main (void)
+main (int argc _GL_UNUSED, char *argv[])
{
/* FIXME: Add tests of fd other than ".". */
int result1;
int result2;
+ set_program_name (argv[0]);
+
/* Remove any leftovers from a previous partial run. */
ignore_value (system ("rm -rf " BASE "*"));