diff options
Diffstat (limited to 'testsuites/libtests/POSIX/read.c')
-rw-r--r-- | testsuites/libtests/POSIX/read.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/testsuites/libtests/POSIX/read.c b/testsuites/libtests/POSIX/read.c index c495480a40..133c8f4498 100644 --- a/testsuites/libtests/POSIX/read.c +++ b/testsuites/libtests/POSIX/read.c @@ -12,14 +12,13 @@ #include <unistd.h> -int -main (void) +int main(void) { int fd = 42; char buf[4]; ssize_t len; - len = read (fd, &buf, 4); + len = read(fd, &buf, 4); - return 0; + return (len != 0); } |