aboutsummaryrefslogtreecommitdiff
path: root/time/tst-mktime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/tst-mktime.c')
-rw-r--r--time/tst-mktime.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/time/tst-mktime.c b/time/tst-mktime.c
index 8bc7631..416a856 100644
--- a/time/tst-mktime.c
+++ b/time/tst-mktime.c
@@ -55,9 +55,11 @@ main (void)
setenv ("TZ", "CET-1", 1);
t = mktime (&time_str);
- if (t != (time_t) -1)
+#define EVENING69_CET (EVENING69 - (5 - -1) * 60 * 60)
+ if (t != EVENING69_CET)
{
- printf ("mktime returned %ld, expected -1\n", (long) t);
+ printf ("mktime returned %ld, expected %ld\n",
+ (long) t, (long) EVENING69_CET);
result = 1;
}
else