Source-Changes-HG archive

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

[src/trunk]: src/regress Remove the libobjc tests; they have been converted t...



details:   https://anonhg.NetBSD.org/src/rev/4d66c608831d
branches:  trunk
changeset: 756464:4d66c608831d
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sun Jul 18 12:44:38 2010 +0000

description:
Remove the libobjc tests; they have been converted to atf and now live in
tests/lib/libobjc/.

diffstat:

 regress/Makefile                        |   4 +-
 regress/gnu/Makefile                    |   5 --
 regress/gnu/lib/Makefile                |   5 --
 regress/gnu/lib/libobjc/Makefile        |   5 --
 regress/gnu/lib/libobjc/thread/Makefile |  15 ------
 regress/gnu/lib/libobjc/thread/thread.m |  77 ---------------------------------
 6 files changed, 2 insertions(+), 109 deletions(-)

diffs (139 lines):

diff -r 017e69b7ebdc -r 4d66c608831d regress/Makefile
--- a/regress/Makefile  Sun Jul 18 12:44:31 2010 +0000
+++ b/regress/Makefile  Sun Jul 18 12:44:38 2010 +0000
@@ -1,6 +1,6 @@
-#      $NetBSD: Makefile,v 1.18 2010/07/17 19:29:33 jmmv Exp $
+#      $NetBSD: Makefile,v 1.19 2010/07/18 12:44:38 jmmv Exp $
 
 # missing: libexec sbin usr.sbin share
-SUBDIR+= gnu lib libexec sys usr.bin
+SUBDIR+= lib libexec sys usr.bin
 
 .include <bsd.subdir.mk>
diff -r 017e69b7ebdc -r 4d66c608831d regress/gnu/Makefile
--- a/regress/gnu/Makefile      Sun Jul 18 12:44:31 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2008/02/08 20:04:50 christos Exp $
-
-SUBDIR+= lib
-
-.include <bsd.subdir.mk>
diff -r 017e69b7ebdc -r 4d66c608831d regress/gnu/lib/Makefile
--- a/regress/gnu/lib/Makefile  Sun Jul 18 12:44:31 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2008/02/08 20:04:50 christos Exp $
-
-SUBDIR+= libobjc
-
-.include <bsd.subdir.mk>
diff -r 017e69b7ebdc -r 4d66c608831d regress/gnu/lib/libobjc/Makefile
--- a/regress/gnu/lib/libobjc/Makefile  Sun Jul 18 12:44:31 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2008/02/08 20:04:50 christos Exp $
-
-SUBDIR+= thread
-
-.include <bsd.subdir.mk>
diff -r 017e69b7ebdc -r 4d66c608831d regress/gnu/lib/libobjc/thread/Makefile
--- a/regress/gnu/lib/libobjc/thread/Makefile   Sun Jul 18 12:44:31 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#      $NetBSD: Makefile,v 1.2 2008/02/09 08:38:08 mrg Exp $
-
-NOMAN=         # defined
-
-PROG=          thread
-WARNS?=                4
-CFLAGS+=-pthread
-LDFLAGS+=-pthread
-DPADD+=${LIBOBJC}
-LDADD+=-lobjc
-
-regress: ${PROG}
-       ./${PROG}
-
-.include <bsd.prog.mk>
diff -r 017e69b7ebdc -r 4d66c608831d regress/gnu/lib/libobjc/thread/thread.m
--- a/regress/gnu/lib/libobjc/thread/thread.m   Sun Jul 18 12:44:31 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,77 +0,0 @@
-/* Written by David Wetzel */
-
-#include <assert.h>
-#include <stdio.h>
-#include <unistd.h>
-
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-static const int debug = 0;
-
-@interface MyClass : Object
-{
-  char *myName;
-}
--(void)setMyName:(const char *)n;
--(const char *)myName;
-@end
-
-@implementation MyClass
--(void)setMyName:(const char *)n
-{
-    size_t len;
-
-    if (myName) {
-           if (strcmp(myName, n) != 0)
-                   return;
-           objc_free(myName);
-    }
-    len = strlen(n) + 1;
-    myName = objc_malloc(len);
-    strcpy(myName, n);
-}
--(char *)myName
-{
-    return myName;
-}
--(void)start
-{
-       if (debug)
-               printf("detached thread started!\n");
-}
-@end
-
-static void
-becomeMultiThreaded(void)
-{
-       if (debug)
-               printf("becoming multithreaded!\n");
-}
-
-int
-main(int argc, char *argv[])
-{
-       id o = [MyClass new];
-       const char *c;
-       objc_thread_callback cb;
-       objc_thread_t rv;
-
-       [o setMyName:"thread"];
-       c = [o myName];
-
-       if (debug)
-               printf("Testing: %s\n",c);
-
-       cb = objc_set_thread_callback(becomeMultiThreaded);
-       if (debug)
-               printf("Old Callback: %p\n",cb);
-
-       rv = objc_thread_detach(@selector(start), o, nil);
-       if (debug)
-               printf("detach value: %p\n",rv);
-       assert(rv != NULL);
-
-       return 0;
-}



Home | Main Index | Thread Index | Old Index