diff options
author | Eric Blake <ebb9@byu.net> | 2009-10-02 18:06:21 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-10-02 18:25:47 -0600 |
commit | ec65f38e49b3db77ef9866f888f0a8d743cfe742 (patch) | |
tree | 304a8bed88c45c7aea5a1c5ec811c3706890d5ef /tests/test-fcntl-safer.c | |
parent | a8cf3a87ebb0a719e9ebacdac9b066c8c7093cb4 (diff) | |
download | gnulib-ec65f38e49b3db77ef9866f888f0a8d743cfe742.tar.gz |
test-open: on GNU/Hurd, /dev/null is a directory
* tests/test-fopen.h (main): Rename...
(test_fopen): ...to this. Use a guaranteed non-directory when
confirming open behavior on trailing slash.
* tests/test-openat-safer.c (main): Likewise.
* tests/test-open.h (main): Likewise....
(test_open): ...to this.
* tests/test-fopen.c (main): Adjust caller.
* tests/test-fopen-safer.c (main): Likewise.
* tests/test-open.c (main): Likewise.
* tests/test-fcntl-safer.c (main): Likewise.
Reported by Samuel Thibault.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'tests/test-fcntl-safer.c')
-rw-r--r-- | tests/test-fcntl-safer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-fcntl-safer.c b/tests/test-fcntl-safer.c index 3b3ff75139..433160bf66 100644 --- a/tests/test-fcntl-safer.c +++ b/tests/test-fcntl-safer.c @@ -20,4 +20,12 @@ #include "fcntl--.h" +#define BASE "test-fcntl-safer.t" + #include "test-open.h" + +int +main () +{ + return test_open (); +} |