diff options
Diffstat (limited to 'testsuites/libtests/POSIX/open.c')
-rw-r--r-- | testsuites/libtests/POSIX/open.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/testsuites/libtests/POSIX/open.c b/testsuites/libtests/POSIX/open.c index f7d60bb237..55d624660c 100644 --- a/testsuites/libtests/POSIX/open.c +++ b/testsuites/libtests/POSIX/open.c @@ -14,14 +14,13 @@ #include <sys/stat.h> #include <fcntl.h> -int -main (void) +int main(void) { int fd1; int fd2; - fd1 = open ("/tmp/foo1", O_RDWR | O_APPEND); - fd2 = open ("/tmp/foo2", O_CREAT, S_IWUSR); + fd1 = open("/tmp/foo1", O_RDWR | O_APPEND); + fd2 = open("/tmp/foo2", O_CREAT, S_IWUSR); - return 0; + return (fd1 != fd2); } |