Source-Changes-HG archive

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

[src/trunk]: src/regress Drop usr.bin/rtld/testlib, replaced with ATF tests i...



details:   https://anonhg.NetBSD.org/src/rev/08b40766a2ce
branches:  trunk
changeset: 353597:08b40766a2ce
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sun May 14 02:30:27 2017 +0000

description:
Drop usr.bin/rtld/testlib, replaced with ATF tests in usr.bin/c++/*

This regress tests used to check dynamically loaded objects:
constructor/destructor call for static objects, C++ runtime support.

This is mostly - although without virtual functions, inheritance - covered
by existing ATF tests.

Stop descending into regress/usr.bin.

diffstat:

 regress/Makefile                          |   5 ++---
 regress/usr.bin/Makefile                  |   7 -------
 regress/usr.bin/rtld/Makefile             |   9 ---------
 regress/usr.bin/rtld/testlib/Makefile     |  27 ---------------------------
 regress/usr.bin/rtld/testlib/ccexc.cc     |  14 --------------
 regress/usr.bin/rtld/testlib/construct.cc |  25 -------------------------
 regress/usr.bin/rtld/testlib/virt.cc      |  15 ---------------
 7 files changed, 2 insertions(+), 100 deletions(-)

diffs (133 lines):

diff -r d1fd52d0d354 -r 08b40766a2ce regress/Makefile
--- a/regress/Makefile  Sun May 14 02:07:58 2017 +0000
+++ b/regress/Makefile  Sun May 14 02:30:27 2017 +0000
@@ -1,6 +1,5 @@
-#      $NetBSD: Makefile,v 1.19 2010/07/18 12:44:38 jmmv Exp $
+#      $NetBSD: Makefile,v 1.20 2017/05/14 02:30:27 kamil Exp $
 
-# missing: libexec sbin usr.sbin share
-SUBDIR+= lib libexec sys usr.bin
+SUBDIR+= lib libexec sys
 
 .include <bsd.subdir.mk>
diff -r d1fd52d0d354 -r 08b40766a2ce regress/usr.bin/Makefile
--- a/regress/usr.bin/Makefile  Sun May 14 02:07:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-#      $NetBSD: Makefile,v 1.20 2017/05/14 02:07:58 kamil Exp $
-
-.include <bsd.own.mk>
-
-SUBDIR+= rtld
-
-.include <bsd.subdir.mk>
diff -r d1fd52d0d354 -r 08b40766a2ce regress/usr.bin/rtld/Makefile
--- a/regress/usr.bin/rtld/Makefile     Sun May 14 02:07:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-# $NetBSD: Makefile,v 1.4 2010/12/14 06:02:21 skrll Exp $
-
-.include <bsd.own.mk>
-
-.if ${MKCXX} != "no"
-SUBDIR+= testlib
-.endif
-
-.include <bsd.subdir.mk>
diff -r d1fd52d0d354 -r 08b40766a2ce regress/usr.bin/rtld/testlib/Makefile
--- a/regress/usr.bin/rtld/testlib/Makefile     Sun May 14 02:07:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-# $NetBSD: Makefile,v 1.10 2012/08/10 16:04:28 joerg Exp $
-
-NOPROFILE=     yes
-
-SRCS=  ccexc.cc construct.cc virt.cc
-
-LIB=   test
-LIBISCXX=      yes
-TESTLIB=       testlib.so
-
-CLEANFILES+=   ${TESTLIB}
-SHLIB_MAJOR=   1
-SHLIB_MINOR=   0
-#CXXFLAGS+= -fno-rtti
-
-.if ${MACHINE_ARCH} == "i386" && "${MKPIC}" != "no"
-all realall:   ${TESTLIB}
-.else
-all realall:
-.endif
-
-${TESTLIB}: lib${LIB}.so.1.0
-       cp lib${LIB}.so.1.0 ${TESTLIB}
-
-regress:
-
-.include <bsd.lib.mk>
diff -r d1fd52d0d354 -r 08b40766a2ce regress/usr.bin/rtld/testlib/ccexc.cc
--- a/regress/usr.bin/rtld/testlib/ccexc.cc     Sun May 14 02:07:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-// $NetBSD: ccexc.cc,v 1.1 2000/12/08 19:21:28 drochner Exp $
-
-// generate references to exception handling runtime code
-
-extern "C" void ccexc(void);
-
-void
-ccexc(void)
-{
-       try {
-               throw "mist";
-       } catch (char *e) {
-       }
-}
diff -r d1fd52d0d354 -r 08b40766a2ce regress/usr.bin/rtld/testlib/construct.cc
--- a/regress/usr.bin/rtld/testlib/construct.cc Sun May 14 02:07:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-// $NetBSD: construct.cc,v 1.2 2003/09/03 20:53:16 drochner Exp $
-
-// check constructor / destructor calls
-
-#include <iostream>
-
-using namespace std;
-
-class mist {
-public:
-       mist(void);
-       ~mist();
-};
-
-mist::mist(void)
-{
-       cout << "constructor" << endl;
-}
-
-mist::~mist()
-{
-       cout << "destructor" << endl;
-}
-
-static mist construct;
diff -r d1fd52d0d354 -r 08b40766a2ce regress/usr.bin/rtld/testlib/virt.cc
--- a/regress/usr.bin/rtld/testlib/virt.cc      Sun May 14 02:07:58 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-// $NetBSD: virt.cc,v 1.1 2000/12/08 19:21:28 drochner Exp $
-
-// g++ generates a reference to "__pure_virtual" with this code
-
-class mist {
-public:
-       virtual void vv(void) = 0;
-};
-
-class mast: public mist {
-public:
-       void vv(void) {};
-};
-
-static mast virt;



Home | Main Index | Thread Index | Old Index