diff options
Diffstat (limited to 'stdio-common/test-popen.c')
-rw-r--r-- | stdio-common/test-popen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stdio-common/test-popen.c b/stdio-common/test-popen.c index d36cd61b4c..1f1c88acc6 100644 --- a/stdio-common/test-popen.c +++ b/stdio-common/test-popen.c @@ -49,8 +49,8 @@ read_data (FILE *stream) } } -int -main (void) +static int +do_test (void) { FILE *output, *input; int wstatus, rstatus; @@ -100,3 +100,6 @@ main (void) puts (wstatus | rstatus ? "Test FAILED!" : "Test succeeded."); return (wstatus | rstatus); } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |