Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/lib/libc mktime test has been atf-ified
details: https://anonhg.NetBSD.org/src/rev/8ac9f8c7ba39
branches: trunk
changeset: 760522:8ac9f8c7ba39
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Jan 06 17:22:14 2011 +0000
description:
mktime test has been atf-ified
diffstat:
regress/lib/libc/Makefile | 4 ++--
regress/lib/libc/time/Makefile | 5 -----
regress/lib/libc/time/Makefile.inc | 3 ---
regress/lib/libc/time/mktime/Makefile | 10 ----------
regress/lib/libc/time/mktime/mktime.c | 22 ----------------------
5 files changed, 2 insertions(+), 42 deletions(-)
diffs (68 lines):
diff -r 0bf45bb64ab9 -r 8ac9f8c7ba39 regress/lib/libc/Makefile
--- a/regress/lib/libc/Makefile Thu Jan 06 17:20:48 2011 +0000
+++ b/regress/lib/libc/Makefile Thu Jan 06 17:22:14 2011 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.73 2011/01/05 21:20:25 pgoyette Exp $
+# $NetBSD: Makefile,v 1.74 2011/01/06 17:22:14 pgoyette Exp $
-SUBDIR+= citrus db divrem getaddrinfo int_fmtio locale regex rpc sys time
+SUBDIR+= citrus db divrem getaddrinfo int_fmtio locale regex rpc sys
.include <bsd.own.mk>
.include <bsd.sys.mk>
diff -r 0bf45bb64ab9 -r 8ac9f8c7ba39 regress/lib/libc/time/Makefile
--- a/regress/lib/libc/time/Makefile Thu Jan 06 17:20:48 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.3 2011/01/05 16:21:29 pgoyette Exp $
-
-SUBDIR+=mktime
-
-.include <bsd.subdir.mk>
diff -r 0bf45bb64ab9 -r 8ac9f8c7ba39 regress/lib/libc/time/Makefile.inc
--- a/regress/lib/libc/time/Makefile.inc Thu Jan 06 17:20:48 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-# $NetBSD: Makefile.inc,v 1.1 1998/01/22 19:29:37 thorpej Exp $
-
-.include "../Makefile.inc"
diff -r 0bf45bb64ab9 -r 8ac9f8c7ba39 regress/lib/libc/time/mktime/Makefile
--- a/regress/lib/libc/time/mktime/Makefile Thu Jan 06 17:20:48 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2008/08/27 08:50:04 christos Exp $
-
-NOMAN= # defined
-
-PROG= mktime
-
-regress:
- ./${PROG}
-
-.include <bsd.prog.mk>
diff -r 0bf45bb64ab9 -r 8ac9f8c7ba39 regress/lib/libc/time/mktime/mktime.c
--- a/regress/lib/libc/time/mktime/mktime.c Thu Jan 06 17:20:48 2011 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-#include <err.h>
-#include <errno.h>
-#include <string.h>
-#include <time.h>
-
-int
-main(void)
-{
- time_t rc;
- struct tm tms;
-
- (void)memset(&tms, 0, sizeof(tms));
- tms.tm_year = ~0;
-
- errno = 0;
- rc = mktime(&tms);
-
- if (errno != 0)
- errx(1, "mktime(): errno was %d", errno);
-
- return 0;
-}
Home |
Main Index |
Thread Index |
Old Index