diff options
Diffstat (limited to 'stdio-common/tst-fileno.c')
-rw-r--r-- | stdio-common/tst-fileno.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stdio-common/tst-fileno.c b/stdio-common/tst-fileno.c index a0c8853..753df9f 100644 --- a/stdio-common/tst-fileno.c +++ b/stdio-common/tst-fileno.c @@ -28,10 +28,13 @@ check (const char *name, FILE *stream, int fd) return sfd != fd; } -int -main (void) +static int +do_test (void) { return (check ("stdin", stdin, STDIN_FILENO) || check ("stdout", stdout, STDOUT_FILENO) || check ("stderr", stderr, STDERR_FILENO)); } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |