aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/test-fmemopen.c7
-rw-r--r--libio/tst-freopen.c7
-rw-r--r--libio/tst-sscanf.c7
-rw-r--r--libio/tst-ungetwc1.c7
-rw-r--r--libio/tst-ungetwc2.c7
-rw-r--r--libio/tst-widetext.c7
6 files changed, 30 insertions, 12 deletions
diff --git a/libio/test-fmemopen.c b/libio/test-fmemopen.c
index 30998940e1..211176e154 100644
--- a/libio/test-fmemopen.c
+++ b/libio/test-fmemopen.c
@@ -22,8 +22,8 @@ static char buffer[] = "foobar";
#include <stdio.h>
#include <string.h>
-int
-main (void)
+static int
+do_test (void)
{
int ch;
FILE *stream;
@@ -37,3 +37,6 @@ main (void)
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/libio/tst-freopen.c b/libio/tst-freopen.c
index f9e71773e7..94284ec796 100644
--- a/libio/tst-freopen.c
+++ b/libio/tst-freopen.c
@@ -22,8 +22,8 @@
#include <string.h>
#include <unistd.h>
-int
-main (void)
+static int
+do_test (void)
{
char name[] = "/tmp/tst-freopen.XXXXXX";
const char * const test = "Let's test freopen.\n";
@@ -100,3 +100,6 @@ main (void)
unlink (name);
exit (0);
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/libio/tst-sscanf.c b/libio/tst-sscanf.c
index b1a2b8487e..fb4be34b77 100644
--- a/libio/tst-sscanf.c
+++ b/libio/tst-sscanf.c
@@ -3,8 +3,8 @@
#define WCS_LENGTH 256
-int
-main (void)
+static int
+do_test (void)
{
const char cnv[] ="%l[abc]";
const char str[] = "abbcXab";
@@ -18,3 +18,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/libio/tst-ungetwc1.c b/libio/tst-ungetwc1.c
index f74c407893..f71b39059f 100644
--- a/libio/tst-ungetwc1.c
+++ b/libio/tst-ungetwc1.c
@@ -7,8 +7,8 @@
#include <unistd.h>
#include <wchar.h>
-int
-main (void)
+static int
+do_test (void)
{
FILE *fp;
const char *str = "abcdef";
@@ -79,3 +79,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/libio/tst-ungetwc2.c b/libio/tst-ungetwc2.c
index d15e287c05..a7c5193f5f 100644
--- a/libio/tst-ungetwc2.c
+++ b/libio/tst-ungetwc2.c
@@ -7,8 +7,8 @@
#include <unistd.h>
#include <wchar.h>
-int
-main (void)
+static int
+do_test (void)
{
FILE *fp;
const char *str = "abcdef";
@@ -79,3 +79,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/libio/tst-widetext.c b/libio/tst-widetext.c
index 179763e852..acab72b708 100644
--- a/libio/tst-widetext.c
+++ b/libio/tst-widetext.c
@@ -31,8 +31,8 @@
#define SIZE 210000
-int
-main (void)
+static int
+do_test (void)
{
char name[] = "/tmp/widetext.out.XXXXXX";
char mbbuf[SIZE];
@@ -367,3 +367,6 @@ main (void)
return status;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"