Mercurial > hg > octave-lojdl > gnulib-hg
comparison tests/test-mkdirat.c @ 15287:223683be3038
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 18 Jun 2011 23:06:53 +0200 |
parents | 97fc9a21a8fb |
children | bbc06c8e298f |
comparison
equal
deleted
inserted
replaced
15286:77d3a3059f17 | 15287:223683be3038 |
---|---|
28 #include <stdbool.h> | 28 #include <stdbool.h> |
29 #include <stdio.h> | 29 #include <stdio.h> |
30 #include <stdlib.h> | 30 #include <stdlib.h> |
31 #include <unistd.h> | 31 #include <unistd.h> |
32 | 32 |
33 #include "progname.h" | |
33 #include "ignore-value.h" | 34 #include "ignore-value.h" |
34 #include "macros.h" | 35 #include "macros.h" |
35 | 36 |
36 #define BASE "test-mkdirat.t" | 37 #define BASE "test-mkdirat.t" |
37 | 38 |
45 { | 46 { |
46 return mkdirat (dfd, name, mode); | 47 return mkdirat (dfd, name, mode); |
47 } | 48 } |
48 | 49 |
49 int | 50 int |
50 main (void) | 51 main (int argc _GL_UNUSED, char *argv[]) |
51 { | 52 { |
52 int result; | 53 int result; |
54 | |
55 set_program_name (argv[0]); | |
53 | 56 |
54 /* Clean up any trash from prior testsuite runs. */ | 57 /* Clean up any trash from prior testsuite runs. */ |
55 ignore_value (system ("rm -rf " BASE "*")); | 58 ignore_value (system ("rm -rf " BASE "*")); |
56 | 59 |
57 /* Test basic mkdir functionality. */ | 60 /* Test basic mkdir functionality. */ |