diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2022-11-22 10:40:11 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2022-11-22 10:40:11 +0000 |
commit | f311ab49829d6eb5df0910fdc542a89a5f0d4445 (patch) | |
tree | 8567470dcb645f885bebeb4e2e4439cb208dfee6 /regress/lib | |
parent | 705fe332af7d0cba407c471a2e269d4b0d1282f0 (diff) |
Be more helpful and provide details on what the time conversion tests
need in order to run.
Also, output the expected SKIPPED string as dictated by bsd.regress.mk.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libc/time/time_conversion/timetest.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/regress/lib/libc/time/time_conversion/timetest.c b/regress/lib/libc/time/time_conversion/timetest.c index 77a7cbe1151..075d7e4ad59 100644 --- a/regress/lib/libc/time/time_conversion/timetest.c +++ b/regress/lib/libc/time/time_conversion/timetest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: timetest.c,v 1.2 2022/11/09 18:11:45 beck Exp $ */ +/* $OpenBSD: timetest.c,v 1.3 2022/11/22 10:40:10 anton Exp $ */ /* * Copyright (c) 2022 Bob Beck <beck@openbsd.org> @@ -1826,14 +1826,11 @@ int main() { int verbose = 0; struct stat sb; - if (stat("/usr/share/zoneinfo/posix", &sb) == -1) { - fprintf(stderr, "WARNING: /usr/share/zoneinfo/posix not" - "present,\nCreate posix time zones to run this test.\n"); - exit(0); - } - if (stat("/usr/share/zoneinfo/right", &sb) == -1) { - fprintf(stderr, "WARNING: /usr/share/zoneinfo/right not" - "present,\nCreate right time zones to run this test.\n"); + if (stat("/usr/share/zoneinfo/posix", &sb) == -1 || + stat("/usr/share/zoneinfo/right", &sb) == -1) { + fprintf(stderr, "POSIX time zones missing, run the following command:\n\n" + "\tmake -C ../../../../../share/zoneinfo other_two\n\n" + "SKIPPED\n"); exit(0); } |