summaryrefslogtreecommitdiff
path: root/stdio-common/tst-fileno.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tst-fileno.c')
-rw-r--r--stdio-common/tst-fileno.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/stdio-common/tst-fileno.c b/stdio-common/tst-fileno.c
index a0c8853b85..753df9f68b 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"