Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/lib/libc/ssp The ssp tests have moved to atf format ...



details:   https://anonhg.NetBSD.org/src/rev/c85f28337905
branches:  trunk
changeset: 760104:c85f28337905
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Dec 27 03:33:46 2010 +0000

description:
The ssp tests have moved to atf format in src/tests/lib/libc/ssp/

diffstat:

 regress/lib/libc/ssp/Makefile              |   5 -----
 regress/lib/libc/ssp/Makefile.inc          |  16 ----------------
 regress/lib/libc/ssp/fgets/Makefile        |  14 --------------
 regress/lib/libc/ssp/fgets/fgets.c         |  12 ------------
 regress/lib/libc/ssp/getcwd/Makefile       |  14 --------------
 regress/lib/libc/ssp/getcwd/getcwd.c       |  14 --------------
 regress/lib/libc/ssp/gets/Makefile         |  14 --------------
 regress/lib/libc/ssp/gets/gets.c           |  10 ----------
 regress/lib/libc/ssp/memcpy/Makefile       |  14 --------------
 regress/lib/libc/ssp/memcpy/memcpy.c       |  14 --------------
 regress/lib/libc/ssp/memmove/Makefile      |  14 --------------
 regress/lib/libc/ssp/memmove/memmove.c     |  14 --------------
 regress/lib/libc/ssp/memset/Makefile       |  14 --------------
 regress/lib/libc/ssp/memset/memset.c       |  12 ------------
 regress/lib/libc/ssp/raw/Makefile          |  14 --------------
 regress/lib/libc/ssp/raw/raw.c             |  22 ----------------------
 regress/lib/libc/ssp/read/Makefile         |  14 --------------
 regress/lib/libc/ssp/read/read.c           |  14 --------------
 regress/lib/libc/ssp/readlink/Makefile     |  14 --------------
 regress/lib/libc/ssp/readlink/readlink.c   |  14 --------------
 regress/lib/libc/ssp/snprintf/Makefile     |  14 --------------
 regress/lib/libc/ssp/snprintf/snprintf.c   |  12 ------------
 regress/lib/libc/ssp/sprintf/Makefile      |  14 --------------
 regress/lib/libc/ssp/sprintf/sprintf.c     |  10 ----------
 regress/lib/libc/ssp/strcat/Makefile       |  14 --------------
 regress/lib/libc/ssp/strcat/strcat.c       |  13 -------------
 regress/lib/libc/ssp/strcpy/Makefile       |  14 --------------
 regress/lib/libc/ssp/strcpy/strcpy.c       |  12 ------------
 regress/lib/libc/ssp/strncat/Makefile      |  14 --------------
 regress/lib/libc/ssp/strncat/strncat.c     |  15 ---------------
 regress/lib/libc/ssp/strncpy/Makefile      |  14 --------------
 regress/lib/libc/ssp/strncpy/strncpy.c     |  14 --------------
 regress/lib/libc/ssp/vsnprintf/Makefile    |  14 --------------
 regress/lib/libc/ssp/vsnprintf/vsnprintf.c |  24 ------------------------
 regress/lib/libc/ssp/vsprintf/Makefile     |  14 --------------
 regress/lib/libc/ssp/vsprintf/vsprintf.c   |  22 ----------------------
 36 files changed, 0 insertions(+), 507 deletions(-)

diffs (truncated from 651 to 300 lines):

diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/Makefile
--- a/regress/lib/libc/ssp/Makefile     Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2007/05/31 21:51:48 christos Exp $
-SUBDIR=        fgets gets getcwd memcpy memmove memset raw read readlink \
-       snprintf sprintf strcat strcpy strncat strncpy vsnprintf vsprintf
-
-.include <bsd.subdir.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/Makefile.inc
--- a/regress/lib/libc/ssp/Makefile.inc Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-# $NetBSD: Makefile.inc,v 1.3 2007/06/01 17:15:19 martin Exp $
-
-WARNS= 4
-
-CPPFLAGS+=-D_FORTIFY_SOURCE=2
-CFLAGS+=-fstack-protector-all -Wstack-protector
-LDFLAGS+=-fstack-protector-all -Wstack-protector
-
-# Bootstrap hack
-
-.ifmake !clean && !obj && !cleandir
-.BEGIN:
-       ${AR} cr libssp_nonshared.a
-.endif
-CLEANFILES+= libssp_nonshared.a
-LDFLAGS+=-L.
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/fgets/Makefile
--- a/regress/lib/libc/ssp/fgets/Makefile       Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2007/05/31 21:51:49 christos Exp $
-
-NOMAN= #defined
-
-.include <bsd.own.mk>
-
-PROG=  fgets
-SRCS=  fgets.c
-
-regress: ${PROG}
-       echo ok | ./${PROG} 10
-       -(echo busted | ./${PROG} 11)
-
-.include <bsd.prog.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/fgets/fgets.c
--- a/regress/lib/libc/ssp/fgets/fgets.c        Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main(int argc, char *argv[])
-{
-       char b[10];
-       int len = atoi(argv[1]);
-       (void)fgets(b, len, stdin);
-       (void)printf("%s\n", b);
-       return 0;
-}
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/getcwd/Makefile
--- a/regress/lib/libc/ssp/getcwd/Makefile      Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2007/05/31 21:51:49 christos Exp $
-
-NOMAN= #defined
-
-.include <bsd.own.mk>
-
-PROG=  getcwd
-SRCS=  getcwd.c
-
-regress: ${PROG}
-       ./${PROG} 1024
-       -./${PROG} 1025
-
-.include <bsd.prog.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/getcwd/getcwd.c
--- a/regress/lib/libc/ssp/getcwd/getcwd.c      Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#include <sys/param.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-
-int
-main(int argc, char *argv[])
-{
-       char b[MAXPATHLEN];
-       size_t len = atoi(argv[1]);
-       (void)getcwd(b, len);
-       (void)printf("%s\n", b);
-       return 0;
-}
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/gets/Makefile
--- a/regress/lib/libc/ssp/gets/Makefile        Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2007/05/31 21:51:50 christos Exp $
-
-NOMAN= #defined
-
-.include <bsd.own.mk>
-
-PROG=  gets
-SRCS=  gets.c
-
-regress: ${PROG}
-       echo ok | ./${PROG}
-       -(echo 0123456789 | ./${PROG})
-
-.include <bsd.prog.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/gets/gets.c
--- a/regress/lib/libc/ssp/gets/gets.c  Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-#include <stdio.h>
-
-int
-main(int argc, char *argv[])
-{
-       char b[10];
-       (void)gets(b);
-       (void)printf("%s\n", b);
-       return 0;
-}
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/memcpy/Makefile
--- a/regress/lib/libc/ssp/memcpy/Makefile      Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2007/05/31 21:51:50 christos Exp $
-
-NOMAN= #defined
-
-.include <bsd.own.mk>
-
-PROG=  memcpy
-SRCS=  memcpy.c
-
-regress: ${PROG}
-       ./${PROG} 10
-       -./${PROG} 11
-
-.include <bsd.prog.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/memcpy/memcpy.c
--- a/regress/lib/libc/ssp/memcpy/memcpy.c      Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-int
-main(int argc, char *argv[])
-{
-       char b[10];
-       int len = atoi(argv[1]);
-       (void)memcpy(b, "1020202020202", len);
-
-       (void)printf("%*.*s\n", len, len, b);
-       return 0;
-}
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/memmove/Makefile
--- a/regress/lib/libc/ssp/memmove/Makefile     Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2007/05/31 21:51:50 christos Exp $
-
-NOMAN= #defined
-
-.include <bsd.own.mk>
-
-PROG=  memmove
-SRCS=  memmove.c
-
-regress: ${PROG}
-       ./${PROG} 10
-       -./${PROG} 11
-
-.include <bsd.prog.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/memmove/memmove.c
--- a/regress/lib/libc/ssp/memmove/memmove.c    Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-int
-main(int argc, char *argv[])
-{
-       char b[10];
-       int len =  atoi(argv[1]);
-       (void)memmove(b, "1020202020202", len);
-
-       (void)printf("%*.*s\n", len, len, b);
-       return 0;
-}
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/memset/Makefile
--- a/regress/lib/libc/ssp/memset/Makefile      Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2007/05/31 21:51:51 christos Exp $
-
-NOMAN= #defined
-
-.include <bsd.own.mk>
-
-PROG=  memset
-SRCS=  memset.c
-
-regress: ${PROG}
-       ./${PROG} 10
-       -./${PROG} 11
-
-.include <bsd.prog.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/memset/memset.c
--- a/regress/lib/libc/ssp/memset/memset.c      Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-int
-main(int argc, char *argv[])
-{
-       char b[10];
-       size_t len =  atoi(argv[1]);
-       (void)memset(b, 0, len);
-       return 0;
-}
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/raw/Makefile
--- a/regress/lib/libc/ssp/raw/Makefile Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2007/05/31 21:51:51 christos Exp $
-
-NOMAN= #defined
-
-.include <bsd.own.mk>
-
-PROG=  raw
-SRCS=  raw.c
-
-regress: ${PROG}
-       ./${PROG} 9
-       -./${PROG} 10
-
-.include <bsd.prog.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/raw/raw.c
--- a/regress/lib/libc/ssp/raw/raw.c    Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-static void raw(char *, size_t);
-
-static void
-raw(char *b, size_t len) {
-       b[len] = '\0';
-}
-
-int
-main(int argc, char *argv[])
-{
-       char b[10];
-       size_t len = atoi(argv[1]);
-
-       (void)strncpy(b, "0000000000", sizeof(b));
-       raw(b, len);
-       (void)printf("%s\n", b);
-       return 0;
-}
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/read/Makefile
--- a/regress/lib/libc/ssp/read/Makefile        Mon Dec 27 02:04:18 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#      $NetBSD: Makefile,v 1.1 2007/05/31 21:51:51 christos Exp $
-
-NOMAN= #defined
-
-.include <bsd.own.mk>
-
-PROG=  read
-SRCS=  read.c
-
-regress: ${PROG}
-       echo foo | ./${PROG} 1024
-       -(echo bar | ./${PROG} 1025)
-
-.include <bsd.prog.mk>
diff -r 51a42166ee63 -r c85f28337905 regress/lib/libc/ssp/read/read.c



Home | Main Index | Thread Index | Old Index