aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/tst-ftime_l.c7
-rw-r--r--time/tst-getdate.c7
-rw-r--r--time/tst-mktime.c7
-rw-r--r--time/tst-mktime3.c7
-rw-r--r--time/tst-posixtz.c7
-rw-r--r--time/tst-strptime2.c7
-rw-r--r--time/tst-strptime3.c7
7 files changed, 35 insertions, 14 deletions
diff --git a/time/tst-ftime_l.c b/time/tst-ftime_l.c
index fc3d78d689..6690efeb9c 100644
--- a/time/tst-ftime_l.c
+++ b/time/tst-ftime_l.c
@@ -6,8 +6,8 @@
#include <wchar.h>
-int
-main (void)
+static int
+do_test (void)
{
locale_t l;
locale_t old;
@@ -124,3 +124,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/time/tst-getdate.c b/time/tst-getdate.c
index fd879239c3..b3377ee55a 100644
--- a/time/tst-getdate.c
+++ b/time/tst-getdate.c
@@ -76,8 +76,8 @@ report_date_error (int err)
}
-int
-main (void)
+static int
+do_test (void)
{
int errors = 0;
size_t i;
@@ -121,3 +121,6 @@ main (void)
printf ("No errors found.\n");
return errors != 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/time/tst-mktime.c b/time/tst-mktime.c
index 416a85616c..c1473600dd 100644
--- a/time/tst-mktime.c
+++ b/time/tst-mktime.c
@@ -3,8 +3,8 @@
#include <string.h>
#include <time.h>
-int
-main (void)
+static int
+do_test (void)
{
struct tm time_str, *tm;
time_t t;
@@ -68,3 +68,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/time/tst-mktime3.c b/time/tst-mktime3.c
index 60d0e0b32c..c738e5384a 100644
--- a/time/tst-mktime3.c
+++ b/time/tst-mktime3.c
@@ -17,8 +17,8 @@ struct tm expected[] =
{ .tm_sec = 5, .tm_mday = 1, .tm_year = 102, .tm_wday = 2 }
};
-int
-main (void)
+static int
+do_test (void)
{
setenv ("TZ", "UTC", 1);
int i;
@@ -48,3 +48,6 @@ main (void)
}
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/time/tst-posixtz.c b/time/tst-posixtz.c
index 019d92ada0..c1ea267cb4 100644
--- a/time/tst-posixtz.c
+++ b/time/tst-posixtz.c
@@ -28,8 +28,8 @@ struct
"1999/02/25 15:18:12 dst=0 zone=EST" },
};
-int
-main (void)
+static int
+do_test (void)
{
int result = 0;
size_t cnt;
@@ -116,3 +116,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/time/tst-strptime2.c b/time/tst-strptime2.c
index 73552bb8f8..bcd6cc8be9 100644
--- a/time/tst-strptime2.c
+++ b/time/tst-strptime2.c
@@ -26,8 +26,8 @@ static const struct
#define ntests (sizeof (tests) / sizeof (tests[0]))
-int
-main (void)
+static int
+do_test (void)
{
int result = 0;
@@ -57,3 +57,6 @@ main (void)
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/time/tst-strptime3.c b/time/tst-strptime3.c
index 9a8c6485e7..75b57c1928 100644
--- a/time/tst-strptime3.c
+++ b/time/tst-strptime3.c
@@ -4,8 +4,8 @@
#include <time.h>
-int
-main (void)
+static int
+do_test (void)
{
int result = 0;
struct tm tm;
@@ -53,3 +53,6 @@ main (void)
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"