|
From: <sv...@va...> - 2005-06-30 02:16:04
|
Author: njn
Date: 2005-06-30 03:15:59 +0100 (Thu, 30 Jun 2005)
New Revision: 4060
Log:
Move a bunch of tests from corecheck/tests/ to none/tests/.
Added:
trunk/none/tests/pth_atfork1.c
trunk/none/tests/pth_atfork1.stderr.exp
trunk/none/tests/pth_atfork1.stdout.exp
trunk/none/tests/pth_atfork1.vgtest
trunk/none/tests/pth_cancel1.c
trunk/none/tests/pth_cancel1.stderr.exp
trunk/none/tests/pth_cancel1.stdout.exp
trunk/none/tests/pth_cancel1.vgtest
trunk/none/tests/pth_cancel2.c
trunk/none/tests/pth_cancel2.stderr.exp
trunk/none/tests/pth_cancel2.vgtest
trunk/none/tests/pth_cvsimple.c
trunk/none/tests/pth_cvsimple.stderr.exp
trunk/none/tests/pth_cvsimple.stdout.exp
trunk/none/tests/pth_cvsimple.vgtest
trunk/none/tests/pth_empty.c
trunk/none/tests/pth_empty.stderr.exp
trunk/none/tests/pth_empty.vgtest
trunk/none/tests/pth_exit.c
trunk/none/tests/pth_exit.stderr.exp
trunk/none/tests/pth_exit.vgtest
trunk/none/tests/pth_exit2.c
trunk/none/tests/pth_exit2.stderr.exp
trunk/none/tests/pth_exit2.vgtest
trunk/none/tests/pth_mutexspeed.c
trunk/none/tests/pth_mutexspeed.stderr.exp
trunk/none/tests/pth_mutexspeed.stdout.exp
trunk/none/tests/pth_mutexspeed.vgtest
trunk/none/tests/pth_once.c
trunk/none/tests/pth_once.stderr.exp
trunk/none/tests/pth_once.stdout.exp
trunk/none/tests/pth_once.vgtest
trunk/none/tests/pth_rwlock.c
trunk/none/tests/pth_rwlock.stderr.exp
trunk/none/tests/pth_rwlock.vgtest
Removed:
trunk/corecheck/tests/pth_atfork1.c
trunk/corecheck/tests/pth_atfork1.stderr.exp
trunk/corecheck/tests/pth_atfork1.stdout.exp
trunk/corecheck/tests/pth_atfork1.vgtest
trunk/corecheck/tests/pth_cancel1.c
trunk/corecheck/tests/pth_cancel1.stderr.exp
trunk/corecheck/tests/pth_cancel1.stdout.exp
trunk/corecheck/tests/pth_cancel1.vgtest
trunk/corecheck/tests/pth_cancel2.c
trunk/corecheck/tests/pth_cancel2.stderr.exp
trunk/corecheck/tests/pth_cancel2.vgtest
trunk/corecheck/tests/pth_cvsimple.c
trunk/corecheck/tests/pth_cvsimple.stderr.exp
trunk/corecheck/tests/pth_cvsimple.stdout.exp
trunk/corecheck/tests/pth_cvsimple.vgtest
trunk/corecheck/tests/pth_empty.c
trunk/corecheck/tests/pth_empty.stderr.exp
trunk/corecheck/tests/pth_empty.vgtest
trunk/corecheck/tests/pth_exit.c
trunk/corecheck/tests/pth_exit.stderr.exp
trunk/corecheck/tests/pth_exit.vgtest
trunk/corecheck/tests/pth_exit2.c
trunk/corecheck/tests/pth_exit2.stderr.exp
trunk/corecheck/tests/pth_exit2.vgtest
trunk/corecheck/tests/pth_mutexspeed.c
trunk/corecheck/tests/pth_mutexspeed.stderr.exp
trunk/corecheck/tests/pth_mutexspeed.stdout.exp
trunk/corecheck/tests/pth_mutexspeed.vgtest
trunk/corecheck/tests/pth_once.c
trunk/corecheck/tests/pth_once.stderr.exp
trunk/corecheck/tests/pth_once.stdout.exp
trunk/corecheck/tests/pth_once.vgtest
trunk/corecheck/tests/pth_rwlock.c
trunk/corecheck/tests/pth_rwlock.stderr.exp
trunk/corecheck/tests/pth_rwlock.vgtest
Modified:
trunk/corecheck/tests/Makefile.am
trunk/none/tests/Makefile.am
Modified: trunk/corecheck/tests/Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/Makefile.am 2005-06-30 00:54:02 UTC (rev 4059)
+++ trunk/corecheck/tests/Makefile.am 2005-06-30 02:15:59 UTC (rev 4060)
@@ -8,17 +8,6 @@
=20
EXTRA_DIST =3D $(noinst_SCRIPTS) \
erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
- pth_atfork1.stderr.exp pth_atfork1.stdout.exp pth_atfork1.vgtest \
- pth_cancel1.stderr.exp pth_cancel1.stdout.exp pth_cancel1.vgtest \
- pth_cancel2.stderr.exp pth_cancel2.vgtest \
- pth_cvsimple.stderr.exp pth_cvsimple.stdout.exp pth_cvsimple.vgtest \
- pth_empty.stderr.exp pth_empty.vgtest \
- pth_exit.stderr.exp pth_exit.vgtest \
- pth_exit2.stderr.exp pth_exit2.vgtest \
- pth_mutexspeed.stderr.exp \
- pth_mutexspeed.stdout.exp pth_mutexspeed.vgtest \
- pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \
- pth_rwlock.stderr.exp pth_rwlock.vgtest \
sigkill.stderr.exp sigkill.stderr.exp2 sigkill.vgtest \
stack_changes.vgtest \
res_search.stderr.exp res_search.stdout.exp res_search.vgtest \
@@ -28,8 +17,6 @@
check_PROGRAMS =3D \
erringfds \
sigkill res_search \
- pth_atfork1 pth_cancel1 pth_cancel2 pth_cvsimple pth_empty \
- pth_exit pth_exit2 pth_mutexspeed pth_once pth_rwlock \
threadederrno \
stack_changes
=20
@@ -39,27 +26,6 @@
=20
sigkill_SOURCES =3D sigkill.c
=20
-# Pthread ones
-pth_atfork1_SOURCES =3D pth_atfork1.c
-pth_atfork1_LDADD =3D -lpthread
-pth_cancel1_SOURCES =3D pth_cancel1.c
-pth_cancel1_LDADD =3D -lpthread
-pth_cancel2_SOURCES =3D pth_cancel2.c
-pth_cancel2_LDADD =3D -lpthread
-pth_cvsimple_SOURCES =3D pth_cvsimple.c
-pth_cvsimple_LDADD =3D -lpthread
-pth_empty_SOURCES =3D pth_empty.c
-pth_empty_LDADD =3D -lpthread
-pth_exit_SOURCES =3D pth_exit.c
-pth_exit_LDADD =3D -lpthread
-pth_exit2_SOURCES =3D pth_exit2.c
-pth_exit2_LDADD =3D -lpthread
-pth_mutexspeed_SOURCES =3D pth_mutexspeed.c
-pth_mutexspeed_LDADD =3D -lpthread
-pth_once_SOURCES =3D pth_once.c
-pth_once_LDADD =3D -lpthread
-pth_rwlock_SOURCES =3D pth_rwlock.c
-pth_rwlock_LDADD =3D -lpthread
res_search_SOURCES =3D res_search.c
res_search_LDADD =3D -lresolv -lpthread
threadederrno_SOURCES =3D threadederrno.c
Deleted: trunk/corecheck/tests/pth_atfork1.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_atfork1.c 2005-06-30 00:54:02 UTC (rev 4059=
)
+++ trunk/corecheck/tests/pth_atfork1.c 2005-06-30 02:15:59 UTC (rev 4060=
)
@@ -1,106 +0,0 @@
-/* Tests for fork in multi-threaded environment.
- Copyright (C) 2000 Free Software Foundation, Inc.
- Contributed by Ulrich Drepper <dr...@cy...>, 2000.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public License a=
s
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with the GNU C Library; see the file COPYING.LIB. If n=
ot,
- write to the Free Software Foundation, Inc., 59 Temple Place - Suite =
330,
- Boston, MA 02111-1307, USA. */
-
-#include <errno.h>
-#include <error.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <sys/wait.h>
-#include <stdio.h>
-
-enum
-{
- PREPARE_BIT =3D 1,
- PARENT_BIT =3D 2,
- CHILD_BIT =3D 4
-};
-
-static int var;
-
-static void
-prepare (void)
-{
- var |=3D PREPARE_BIT;
-}
-
-static void
-parent (void)
-{
- var |=3D PARENT_BIT;
-}
-
-static void
-child (void)
-{
- var |=3D CHILD_BIT;
-}
-
-
-static void *thread (void *arg);
-
-
-int
-main (void)
-{
- pthread_t th;
- void *res;
-
- pthread_atfork (prepare, parent, child);
-
- if (pthread_create (&th, NULL, thread, NULL) !=3D 0)
- error (EXIT_FAILURE, 0, "cannot create thread");
-
- pthread_join (th, &res);
-
- if ( ( int ) ( long int ) res !=3D 0 )
- error(EXIT_FAILURE, 0, "pthread_join res !=3D 0" );
-
- printf ( "all ok\n" );
- return 0;
-}
-
-
-static void *
-thread (void *arg)
-{
- int status;
- pid_t pid;
-
- pid =3D fork ();
- if (pid =3D=3D 0)
- {
- /* We check whether the `prepare' and `child' function ran. */
- exit (var !=3D (PREPARE_BIT | CHILD_BIT));
- }
- else if (pid =3D=3D (pid_t) -1)
- error (EXIT_FAILURE, errno, "cannot fork");
-
- if (waitpid (pid, &status, 0) !=3D pid)
- error (EXIT_FAILURE, errno, "wrong child");
-
- if (WTERMSIG (status) !=3D 0)
- error (EXIT_FAILURE, 0, "Child terminated incorrectly");
- status =3D WEXITSTATUS (status);
-
- if (status =3D=3D 0)
- status =3D var !=3D (PREPARE_BIT | PARENT_BIT);
-
- return (void *) (long int) status;
-}
Deleted: trunk/corecheck/tests/pth_atfork1.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_atfork1.stderr.exp 2005-06-30 00:54:02 UTC =
(rev 4059)
+++ trunk/corecheck/tests/pth_atfork1.stderr.exp 2005-06-30 02:15:59 UTC =
(rev 4060)
@@ -1,5 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_atfork1.stdout.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_atfork1.stdout.exp 2005-06-30 00:54:02 UTC =
(rev 4059)
+++ trunk/corecheck/tests/pth_atfork1.stdout.exp 2005-06-30 02:15:59 UTC =
(rev 4060)
@@ -1 +0,0 @@
-all ok
Deleted: trunk/corecheck/tests/pth_atfork1.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_atfork1.vgtest 2005-06-30 00:54:02 UTC (rev=
4059)
+++ trunk/corecheck/tests/pth_atfork1.vgtest 2005-06-30 02:15:59 UTC (rev=
4060)
@@ -1 +0,0 @@
-prog: pth_atfork1
Deleted: trunk/corecheck/tests/pth_cancel1.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel1.c 2005-06-30 00:54:02 UTC (rev 4059=
)
+++ trunk/corecheck/tests/pth_cancel1.c 2005-06-30 02:15:59 UTC (rev 4060=
)
@@ -1,66 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <pthread.h>
-#include <unistd.h>
-
-static void thread_cleanup(void *arg)
-{
- printf("cleaning up %p\n", arg);
-
- return;
-}
-
-static void *thread_main(void *arg)
-{
- pthread_cleanup_push(thread_cleanup, (void *)0x1234);
- pthread_cleanup_push(thread_cleanup, (void *)0x5678);
-
- if (pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL) !=3D 0)
- {
- perror("pthread_setcanceltype");
- return NULL;
- }
- =20
- if (pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL) !=3D 0)
- {
- perror("pthread_setcancelstate");
- return NULL;
- }
-
- pause();
-
- pthread_cleanup_pop(0);
- pthread_cleanup_pop(0);
-
- return NULL;
-}
-
-int main(int argc, char **argv)
-{
- pthread_t tid;
- void *result;
- =20
- if (pthread_create(&tid, NULL, thread_main, NULL) !=3D 0)
- {
- perror("pthread_create");
- exit(1);
- }
-
- sleep(1);
-
- if (pthread_cancel(tid) !=3D 0)
- {
- perror("pthread_cancel");
- exit(1);
- }
-
- if (pthread_join(tid, &result) !=3D 0)
- {
- perror("pthread_join");
- exit(1);
- }
-
- printf("result is %s\n", result =3D=3D PTHREAD_CANCELED ? "correct" : =
"incorrect");
- =20
- exit(0);
-}
Deleted: trunk/corecheck/tests/pth_cancel1.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel1.stderr.exp 2005-06-30 00:54:02 UTC =
(rev 4059)
+++ trunk/corecheck/tests/pth_cancel1.stderr.exp 2005-06-30 02:15:59 UTC =
(rev 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_cancel1.stdout.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel1.stdout.exp 2005-06-30 00:54:02 UTC =
(rev 4059)
+++ trunk/corecheck/tests/pth_cancel1.stdout.exp 2005-06-30 02:15:59 UTC =
(rev 4060)
@@ -1,3 +0,0 @@
-cleaning up 0x5678
-cleaning up 0x1234
-result is correct
Deleted: trunk/corecheck/tests/pth_cancel1.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel1.vgtest 2005-06-30 00:54:02 UTC (rev=
4059)
+++ trunk/corecheck/tests/pth_cancel1.vgtest 2005-06-30 02:15:59 UTC (rev=
4060)
@@ -1 +0,0 @@
-prog: pth_cancel1
Deleted: trunk/corecheck/tests/pth_cancel2.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel2.c 2005-06-30 00:54:02 UTC (rev 4059=
)
+++ trunk/corecheck/tests/pth_cancel2.c 2005-06-30 02:15:59 UTC (rev 4060=
)
@@ -1,101 +0,0 @@
-/********************************************************
- * An example source module to accompany...
- *
- * "Using POSIX Threads: Programming with Pthreads"
- * by Brad nichols, Dick Buttlar, Jackie Farrell
- * O'Reilly & Associates, Inc.
- *
- ********************************************************
- * async_safe --
- *
- * Example showing macro wrappers for calling non-async
- * safe routines when the caller has asynchronous=20
- * cancellation turned on
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-#include <pthread.h>
-
-
-#define async_cancel_safe_read(fd,buf,amt) \
- { \
- int oldtype; \
- pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype); \
- if (read(fd,buf,amt) < 0) \
- perror("read"),exit(1); \
- pthread_setcanceltype(oldtype,NULL); \
- pthread_testcancel(); \
- }=20
- =20
-
-#define async_cancel_safe_write(fd,buf,amt) \
- { \
- int oldtype; \
- pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype); \
- if (write(fd,buf,amt) < 0) \
- perror("write"), exit(1); \
- pthread_setcanceltype(oldtype,NULL); \
- pthread_testcancel(); \
- }
-
-
-static int fd;
- =20
-void *io(void *arg)
-{
- int *fd2=3D(int *)arg;=20
- char buf[20]=3D"String";
- int amt=3D20;
-
- for (;;) {
- async_cancel_safe_write(*fd2,buf,amt);
- async_cancel_safe_read(*fd2,buf,amt);
- }
- return(NULL);
-}
-
-void *killer(void *arg)
-{=20
- pthread_t * target =3D (pthread_t *)arg;
- sleep(1);
- pthread_cancel(*target);
- return(NULL);
-}
-
-extern int
-main(void)
-{
- pthread_t io_thread, killer_thread; =20
-
- // extern void *io(void *);
- // extern void *killer(void *);
-
- if ((fd =3D open(".ktemp",O_CREAT | O_RDWR, 0666)) < 0)
- perror("open"), exit(1);
-
- pthread_create(&io_thread,=20
- NULL,
- io,
- (void *)&fd);
- pthread_create(&killer_thread,
- NULL,
- killer,
- (void *)&io_thread);
-
- pthread_join(io_thread, NULL);
-
- pthread_join(killer_thread,NULL);
-
- if ((close(fd)) < 0)
- perror("close"),exit(1);
- if ((unlink(".ktemp")) < 0)
- perror("unlink"),exit(1);
-
- return 0;
-}
Deleted: trunk/corecheck/tests/pth_cancel2.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel2.stderr.exp 2005-06-30 00:54:02 UTC =
(rev 4059)
+++ trunk/corecheck/tests/pth_cancel2.stderr.exp 2005-06-30 02:15:59 UTC =
(rev 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_cancel2.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel2.vgtest 2005-06-30 00:54:02 UTC (rev=
4059)
+++ trunk/corecheck/tests/pth_cancel2.vgtest 2005-06-30 02:15:59 UTC (rev=
4060)
@@ -1 +0,0 @@
-prog: pth_cancel2
Deleted: trunk/corecheck/tests/pth_cvsimple.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cvsimple.c 2005-06-30 00:54:02 UTC (rev 405=
9)
+++ trunk/corecheck/tests/pth_cvsimple.c 2005-06-30 02:15:59 UTC (rev 406=
0)
@@ -1,90 +0,0 @@
-/********************************************************
- * An example source module to accompany...
- *
- * "Using POSIX Threads: Programming with Pthreads"
- * by Brad nichols, Dick Buttlar, Jackie Farrell
- * O'Reilly & Associates, Inc.
- *
- ********************************************************
- *
- * cvsimple.c
- *
- * Demonstrates pthread condvars.
- *
- */
-
-#include <stdio.h>
-#include <pthread.h>
-
-#define NUM_THREADS 3
-#define TCOUNT 10
-#define COUNT_THRES 12
-
-int condvar_was_hit =3D 0;
-int count =3D 0;
-int thread_ids[3] =3D {0,1,2};
-pthread_mutex_t count_lock=3DPTHREAD_MUTEX_INITIALIZER;=20
-pthread_cond_t count_hit_threshold=3DPTHREAD_COND_INITIALIZER;=20
-
-void *inc_count(void *null)
-{
- int i=3D0;
-
- for (i=3D0; i<TCOUNT; i++) {
- pthread_mutex_lock(&count_lock);
- count++;
- printf("inc_counter(): count =3D %d, unlocking mutex\n", count);
- if (count =3D=3D COUNT_THRES) {
- printf("hit threshold!\n");
- pthread_cond_signal(&count_hit_threshold);
- }
- pthread_mutex_unlock(&count_lock);
- }
- =20
- return(NULL);
-}
-
-void *watch_count(void *null)
-{
- pthread_mutex_lock(&count_lock);
-
- while (count < COUNT_THRES) {
- pthread_cond_wait(&count_hit_threshold, &count_lock);
- condvar_was_hit =3D 1;
- }
-
- pthread_mutex_unlock(&count_lock);
- =20
- return(NULL);
-}
-
-extern int
-main(void)
-{
- int i;
- pthread_t threads[3];
-
- pthread_create(&threads[0], NULL, watch_count, NULL);
- pthread_create(&threads[1], NULL, inc_count, NULL);
- pthread_create(&threads[2], NULL, inc_count, NULL);
-
- for (i =3D 0; i < NUM_THREADS; i++) {
- pthread_join(threads[i], NULL);
- }
-
- // Nb: it's not certain that we'll hit here. It's possible that the t=
wo
- // inc_count threads could fully run before watch_count begins, and so
- // pthread_cond_wait() is never called. Or, we could get a spurious
- // wake-up in watch_count(). Nonetheless, it's very likely that thing=
s
- // will work out as expected, since we're starting watch_count() first=
.
- if (condvar_was_hit =3D=3D 1)
- printf("condvar was hit!\n");
- else if (condvar_was_hit > 1)
- printf("condvar was multi-hit...\n");
- else
- printf("condvar was missed...\n");
- =20
- return 0;
-}
-
-
Deleted: trunk/corecheck/tests/pth_cvsimple.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cvsimple.stderr.exp 2005-06-30 00:54:02 UTC=
(rev 4059)
+++ trunk/corecheck/tests/pth_cvsimple.stderr.exp 2005-06-30 02:15:59 UTC=
(rev 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_cvsimple.stdout.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cvsimple.stdout.exp 2005-06-30 00:54:02 UTC=
(rev 4059)
+++ trunk/corecheck/tests/pth_cvsimple.stdout.exp 2005-06-30 02:15:59 UTC=
(rev 4060)
@@ -1,22 +0,0 @@
-inc_counter(): count =3D 1, unlocking mutex
-inc_counter(): count =3D 2, unlocking mutex
-inc_counter(): count =3D 3, unlocking mutex
-inc_counter(): count =3D 4, unlocking mutex
-inc_counter(): count =3D 5, unlocking mutex
-inc_counter(): count =3D 6, unlocking mutex
-inc_counter(): count =3D 7, unlocking mutex
-inc_counter(): count =3D 8, unlocking mutex
-inc_counter(): count =3D 9, unlocking mutex
-inc_counter(): count =3D 10, unlocking mutex
-inc_counter(): count =3D 11, unlocking mutex
-inc_counter(): count =3D 12, unlocking mutex
-hit threshold!
-inc_counter(): count =3D 13, unlocking mutex
-inc_counter(): count =3D 14, unlocking mutex
-inc_counter(): count =3D 15, unlocking mutex
-inc_counter(): count =3D 16, unlocking mutex
-inc_counter(): count =3D 17, unlocking mutex
-inc_counter(): count =3D 18, unlocking mutex
-inc_counter(): count =3D 19, unlocking mutex
-inc_counter(): count =3D 20, unlocking mutex
-condvar was hit!
Deleted: trunk/corecheck/tests/pth_cvsimple.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cvsimple.vgtest 2005-06-30 00:54:02 UTC (re=
v 4059)
+++ trunk/corecheck/tests/pth_cvsimple.vgtest 2005-06-30 02:15:59 UTC (re=
v 4060)
@@ -1 +0,0 @@
-prog: pth_cvsimple
Deleted: trunk/corecheck/tests/pth_empty.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_empty.c 2005-06-30 00:54:02 UTC (rev 4059)
+++ trunk/corecheck/tests/pth_empty.c 2005-06-30 02:15:59 UTC (rev 4060)
@@ -1,7 +0,0 @@
-// Does nothing, but linking it with -lpthread is enough to trigger an e=
rror
-// that should be suppressed when it is run.
-
-int main(void)
-{
- return 0;
-}
Deleted: trunk/corecheck/tests/pth_empty.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_empty.stderr.exp 2005-06-30 00:54:02 UTC (r=
ev 4059)
+++ trunk/corecheck/tests/pth_empty.stderr.exp 2005-06-30 02:15:59 UTC (r=
ev 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_empty.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_empty.vgtest 2005-06-30 00:54:02 UTC (rev 4=
059)
+++ trunk/corecheck/tests/pth_empty.vgtest 2005-06-30 02:15:59 UTC (rev 4=
060)
@@ -1 +0,0 @@
-prog: pth_empty
Deleted: trunk/corecheck/tests/pth_exit.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_exit.c 2005-06-30 00:54:02 UTC (rev 4059)
+++ trunk/corecheck/tests/pth_exit.c 2005-06-30 02:15:59 UTC (rev 4060)
@@ -1,20 +0,0 @@
-#include <pthread.h>
-#include <unistd.h>
-
-static void *th(void *v)
-{
- sleep(1);
- pthread_exit(0);
-}
-
-int main()
-{
- pthread_t a;
-
- pthread_create(&a, NULL, th, NULL);
- pthread_create(&a, NULL, th, NULL);
- pthread_create(&a, NULL, th, NULL);
- pthread_create(&a, NULL, th, NULL);
-
- pthread_exit(0);
-}
Deleted: trunk/corecheck/tests/pth_exit.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_exit.stderr.exp 2005-06-30 00:54:02 UTC (re=
v 4059)
+++ trunk/corecheck/tests/pth_exit.stderr.exp 2005-06-30 02:15:59 UTC (re=
v 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_exit.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_exit.vgtest 2005-06-30 00:54:02 UTC (rev 40=
59)
+++ trunk/corecheck/tests/pth_exit.vgtest 2005-06-30 02:15:59 UTC (rev 40=
60)
@@ -1 +0,0 @@
-prog: pth_exit
Deleted: trunk/corecheck/tests/pth_exit2.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_exit2.c 2005-06-30 00:54:02 UTC (rev 4059)
+++ trunk/corecheck/tests/pth_exit2.c 2005-06-30 02:15:59 UTC (rev 4060)
@@ -1,6 +0,0 @@
-#include <pthread.h>
-
-int main()
-{
- pthread_exit(0);
-}
Deleted: trunk/corecheck/tests/pth_exit2.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_exit2.stderr.exp 2005-06-30 00:54:02 UTC (r=
ev 4059)
+++ trunk/corecheck/tests/pth_exit2.stderr.exp 2005-06-30 02:15:59 UTC (r=
ev 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_exit2.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_exit2.vgtest 2005-06-30 00:54:02 UTC (rev 4=
059)
+++ trunk/corecheck/tests/pth_exit2.vgtest 2005-06-30 02:15:59 UTC (rev 4=
060)
@@ -1 +0,0 @@
-prog: pth_exit2
Deleted: trunk/corecheck/tests/pth_mutexspeed.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_mutexspeed.c 2005-06-30 00:54:02 UTC (rev 4=
059)
+++ trunk/corecheck/tests/pth_mutexspeed.c 2005-06-30 02:15:59 UTC (rev 4=
060)
@@ -1,19 +0,0 @@
-
-#include <stdio.h>
-#include <assert.h>
-#include <pthread.h>
-
-int main ( void )
-{
- const int n =3D 100000;
- int i, r;
- pthread_mutex_t mx =3D PTHREAD_MUTEX_INITIALIZER;
- printf("begin %d lock--unlocks\n", n);
- for (i =3D 0; i < n; i++) {
- r =3D pthread_mutex_lock(&mx);
- r |=3D pthread_mutex_unlock(&mx);
- assert(r =3D=3D 0);
- }
- printf("done %d lock--unlocks\n", n);
- return 0;
-}
Deleted: trunk/corecheck/tests/pth_mutexspeed.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_mutexspeed.stderr.exp 2005-06-30 00:54:02 U=
TC (rev 4059)
+++ trunk/corecheck/tests/pth_mutexspeed.stderr.exp 2005-06-30 02:15:59 U=
TC (rev 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_mutexspeed.stdout.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_mutexspeed.stdout.exp 2005-06-30 00:54:02 U=
TC (rev 4059)
+++ trunk/corecheck/tests/pth_mutexspeed.stdout.exp 2005-06-30 02:15:59 U=
TC (rev 4060)
@@ -1,2 +0,0 @@
-begin 100000 lock--unlocks
-done 100000 lock--unlocks
Deleted: trunk/corecheck/tests/pth_mutexspeed.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_mutexspeed.vgtest 2005-06-30 00:54:02 UTC (=
rev 4059)
+++ trunk/corecheck/tests/pth_mutexspeed.vgtest 2005-06-30 02:15:59 UTC (=
rev 4060)
@@ -1 +0,0 @@
-prog: pth_mutexspeed
Deleted: trunk/corecheck/tests/pth_once.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_once.c 2005-06-30 00:54:02 UTC (rev 4059)
+++ trunk/corecheck/tests/pth_once.c 2005-06-30 02:15:59 UTC (rev 4060)
@@ -1,81 +0,0 @@
-/********************************************************
- * An example source module to accompany...
- *
- * "Using POSIX Threads: Programming with Pthreads"
- * by Brad nichols, Dick Buttlar, Jackie Farrell
- * O'Reilly & Associates, Inc.
- *
- ********************************************************
- * once_exam.c
- *
- * An example of using the pthreads_once() call to execute an
- * initialization procedure.
- *
- * A program spawns multiple threads and each one tries to
- * execute the routine welcome() using the once call. Only
- * the first thread into the once routine will actually
- * execute welcome().
- *
- * The program's main thread synchronizes its exit with the
- * exit of the threads using the pthread_join() operation.
- *
-*/
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/types.h>
-
-#include <pthread.h>
-
-#define NUM_THREADS 10
-
-static pthread_once_t welcome_once_block =3D PTHREAD_ONCE_INIT;
-
-void welcome(void)
-{
- printf("welcome: Welcome\n");
-}
-
-void *identify_yourself(void *arg)
-{
- int rtn;
-
- if ((rtn =3D pthread_once(&welcome_once_block,
- welcome)) !=3D 0) {
- fprintf(stderr, "pthread_once failed with %d",rtn);
- pthread_exit((void *)NULL);
- }
- printf("identify_yourself: Hi, I'm a thread\n");
- return(NULL);
-}
-
-extern int
-main(void)
-{
- int *id_arg, thread_num, rtn;
- pthread_t threads[NUM_THREADS];
-
- id_arg =3D (int *)malloc(NUM_THREADS*sizeof(int));
-
- for (thread_num =3D 0; thread_num < NUM_THREADS; (thread_num)++) {
-
- id_arg[thread_num] =3D thread_num;
-
- if (( rtn =3D pthread_create(&threads[thread_num],=20
- NULL,
- identify_yourself,
- (void *) &(id_arg[thread_num])))=20
- !=3D 0) {
- fprintf(stderr, "pthread_create failed with %d",rtn);
- exit(1);
- }
- } =09
-
- for (thread_num =3D 0; thread_num < NUM_THREADS; thread_num++) {
- pthread_join(threads[thread_num], NULL);
- //printf("main: joined to thread %d\n", thread_num);
- }
- printf("main: Goodbye\n");
- return 0;
-}
Deleted: trunk/corecheck/tests/pth_once.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_once.stderr.exp 2005-06-30 00:54:02 UTC (re=
v 4059)
+++ trunk/corecheck/tests/pth_once.stderr.exp 2005-06-30 02:15:59 UTC (re=
v 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_once.stdout.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_once.stdout.exp 2005-06-30 00:54:02 UTC (re=
v 4059)
+++ trunk/corecheck/tests/pth_once.stdout.exp 2005-06-30 02:15:59 UTC (re=
v 4060)
@@ -1,12 +0,0 @@
-welcome: Welcome
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-identify_yourself: Hi, I'm a thread
-main: Goodbye
Deleted: trunk/corecheck/tests/pth_once.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_once.vgtest 2005-06-30 00:54:02 UTC (rev 40=
59)
+++ trunk/corecheck/tests/pth_once.vgtest 2005-06-30 02:15:59 UTC (rev 40=
60)
@@ -1 +0,0 @@
-prog: pth_once
Deleted: trunk/corecheck/tests/pth_rwlock.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_rwlock.c 2005-06-30 00:54:02 UTC (rev 4059)
+++ trunk/corecheck/tests/pth_rwlock.c 2005-06-30 02:15:59 UTC (rev 4060)
@@ -1,31 +0,0 @@
-#define _XOPEN_SOURCE 600
-
-#include <pthread.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#define LOCKS 2000
-
-int main(int argc, char **argv)
-{
- pthread_rwlock_t locks[LOCKS];
- int n;
- int e;
- =20
- for (n =3D 0; n < LOCKS; n++) {
- if ((e =3D pthread_rwlock_init(locks + n, NULL)) !=3D 0) {
- fprintf(stderr, "pthread_rwlock_init[%d]: %s\n", n, strerror(e));
- exit(1);
- }
- }
- =20
- for (n =3D 0; n < LOCKS; n++) {
- if ((e =3D pthread_rwlock_destroy(locks + n)) !=3D 0) {
- fprintf(stderr, "pthread_rwlock_destroy[%d]: %s\n", n, strerror(e)=
);
- exit(1);
- }
- }
-=20
- exit(0);
-}
Deleted: trunk/corecheck/tests/pth_rwlock.stderr.exp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_rwlock.stderr.exp 2005-06-30 00:54:02 UTC (=
rev 4059)
+++ trunk/corecheck/tests/pth_rwlock.stderr.exp 2005-06-30 02:15:59 UTC (=
rev 4060)
@@ -1,3 +0,0 @@
-
-
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Deleted: trunk/corecheck/tests/pth_rwlock.vgtest
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_rwlock.vgtest 2005-06-30 00:54:02 UTC (rev =
4059)
+++ trunk/corecheck/tests/pth_rwlock.vgtest 2005-06-30 02:15:59 UTC (rev =
4060)
@@ -1 +0,0 @@
-prog: pth_rwlock
Modified: trunk/none/tests/Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/none/tests/Makefile.am 2005-06-30 00:54:02 UTC (rev 4059)
+++ trunk/none/tests/Makefile.am 2005-06-30 02:15:59 UTC (rev 4060)
@@ -58,8 +58,19 @@
mremap.stderr.exp mremap.stdout.exp mremap.vgtest \
munmap_exe.stderr.exp munmap_exe.vgtest \
pending.stdout.exp pending.stderr.exp pending.vgtest \
+ pth_atfork1.stderr.exp pth_atfork1.stdout.exp pth_atfork1.vgtest \
pth_blockedsig.stderr.exp \
pth_blockedsig.stdout.exp pth_blockedsig.vgtest \
+ pth_cancel1.stderr.exp pth_cancel1.stdout.exp pth_cancel1.vgtest \
+ pth_cancel2.stderr.exp pth_cancel2.vgtest \
+ pth_cvsimple.stderr.exp pth_cvsimple.stdout.exp pth_cvsimple.vgtest \
+ pth_empty.stderr.exp pth_empty.vgtest \
+ pth_exit.stderr.exp pth_exit.vgtest \
+ pth_exit2.stderr.exp pth_exit2.vgtest \
+ pth_mutexspeed.stderr.exp \
+ pth_mutexspeed.stdout.exp pth_mutexspeed.vgtest \
+ pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \
+ pth_rwlock.stderr.exp pth_rwlock.vgtest \
pth_stackalign.stderr.exp \
pth_stackalign.stdout.exp pth_stackalign.vgtest \
rcrl.stderr.exp rcrl.stdout.exp rcrl.vgtest \
@@ -94,11 +105,13 @@
fdleak_fcntl fdleak_ipv4 fdleak_open fdleak_pipe \
fdleak_socketpair \
floored fork fucomip manythreads \
- munmap_exe map_unaligned map_unmap mq mremap rcrl readline1 \
- resolv rlimit_nofile selfrun sem semlimit sha1_test \
- shortpush shorts \
- stackgrowth sigstackgrowth \
- smc1 susphello pending pth_blockedsig pth_stackalign \
+ munmap_exe map_unaligned map_unmap mq mremap \
+ pending \
+ pth_atfork1 pth_blockedsig pth_cancel1 pth_cancel2 pth_cvsimple \
+ pth_empty pth_exit pth_exit2 pth_mutexspeed pth_once pth_rwlock \
+ pth_stackalign \
+ rcrl readline1 resolv rlimit_nofile selfrun sem semlimit sha1_test \
+ shortpush shorts stackgrowth sigstackgrowth smc1 susphello \
syscall-restart1 syscall-restart2 system \
thread-exits threaded-fork \
tls tls.so tls2.so yield vgprintf \
@@ -146,8 +159,28 @@
mq_LDADD =3D -lrt
mremap_SOURCES =3D mremap.c
munmap_exe_SOURCES =3D munmap_exe.c
+pth_atfork1_SOURCES =3D pth_atfork1.c
+pth_atfork1_LDADD =3D -lpthread
pth_blockedsig_SOURCES =3D pth_blockedsig.c
pth_blockedsig_LDADD =3D -lpthread
+pth_cancel1_SOURCES =3D pth_cancel1.c
+pth_cancel1_LDADD =3D -lpthread
+pth_cancel2_SOURCES =3D pth_cancel2.c
+pth_cancel2_LDADD =3D -lpthread
+pth_cvsimple_SOURCES =3D pth_cvsimple.c
+pth_cvsimple_LDADD =3D -lpthread
+pth_empty_SOURCES =3D pth_empty.c
+pth_empty_LDADD =3D -lpthread
+pth_exit_SOURCES =3D pth_exit.c
+pth_exit_LDADD =3D -lpthread
+pth_exit2_SOURCES =3D pth_exit2.c
+pth_exit2_LDADD =3D -lpthread
+pth_mutexspeed_SOURCES =3D pth_mutexspeed.c
+pth_mutexspeed_LDADD =3D -lpthread
+pth_once_SOURCES =3D pth_once.c
+pth_once_LDADD =3D -lpthread
+pth_rwlock_SOURCES =3D pth_rwlock.c
+pth_rwlock_LDADD =3D -lpthread
pth_stackalign_SOURCES =3D pth_stackalign.c
pth_stackalign_LDADD =3D -lpthread
rcrl_SOURCES =3D rcrl.c
Copied: trunk/none/tests/pth_atfork1.c (from rev 4052, trunk/corecheck/te=
sts/pth_atfork1.c)
Copied: trunk/none/tests/pth_atfork1.stderr.exp (from rev 4052, trunk/cor=
echeck/tests/pth_atfork1.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_atfork1.stderr.exp 2005-06-29 10:16:14 UTC =
(rev 4052)
+++ trunk/none/tests/pth_atfork1.stderr.exp 2005-06-30 02:15:59 UTC (rev =
4060)
@@ -0,0 +1,3 @@
+
+
+
Copied: trunk/none/tests/pth_atfork1.stdout.exp (from rev 4052, trunk/cor=
echeck/tests/pth_atfork1.stdout.exp)
Copied: trunk/none/tests/pth_atfork1.vgtest (from rev 4052, trunk/coreche=
ck/tests/pth_atfork1.vgtest)
Copied: trunk/none/tests/pth_cancel1.c (from rev 4052, trunk/corecheck/te=
sts/pth_cancel1.c)
Copied: trunk/none/tests/pth_cancel1.stderr.exp (from rev 4052, trunk/cor=
echeck/tests/pth_cancel1.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel1.stderr.exp 2005-06-29 10:16:14 UTC =
(rev 4052)
+++ trunk/none/tests/pth_cancel1.stderr.exp 2005-06-30 02:15:59 UTC (rev =
4060)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_cancel1.stdout.exp (from rev 4052, trunk/cor=
echeck/tests/pth_cancel1.stdout.exp)
Copied: trunk/none/tests/pth_cancel1.vgtest (from rev 4052, trunk/coreche=
ck/tests/pth_cancel1.vgtest)
Copied: trunk/none/tests/pth_cancel2.c (from rev 4052, trunk/corecheck/te=
sts/pth_cancel2.c)
Copied: trunk/none/tests/pth_cancel2.stderr.exp (from rev 4052, trunk/cor=
echeck/tests/pth_cancel2.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cancel2.stderr.exp 2005-06-29 10:16:14 UTC =
(rev 4052)
+++ trunk/none/tests/pth_cancel2.stderr.exp 2005-06-30 02:15:59 UTC (rev =
4060)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_cancel2.vgtest (from rev 4052, trunk/coreche=
ck/tests/pth_cancel2.vgtest)
Copied: trunk/none/tests/pth_cvsimple.c (from rev 4052, trunk/corecheck/t=
ests/pth_cvsimple.c)
Copied: trunk/none/tests/pth_cvsimple.stderr.exp (from rev 4052, trunk/co=
recheck/tests/pth_cvsimple.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_cvsimple.stderr.exp 2005-06-29 10:16:14 UTC=
(rev 4052)
+++ trunk/none/tests/pth_cvsimple.stderr.exp 2005-06-30 02:15:59 UTC (rev=
4060)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_cvsimple.stdout.exp (from rev 4052, trunk/co=
recheck/tests/pth_cvsimple.stdout.exp)
Copied: trunk/none/tests/pth_cvsimple.vgtest (from rev 4052, trunk/corech=
eck/tests/pth_cvsimple.vgtest)
Copied: trunk/none/tests/pth_empty.c (from rev 4052, trunk/corecheck/test=
s/pth_empty.c)
Copied: trunk/none/tests/pth_empty.stderr.exp (from rev 4052, trunk/corec=
heck/tests/pth_empty.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_empty.stderr.exp 2005-06-29 10:16:14 UTC (r=
ev 4052)
+++ trunk/none/tests/pth_empty.stderr.exp 2005-06-30 02:15:59 UTC (rev 40=
60)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_empty.vgtest (from rev 4052, trunk/corecheck=
/tests/pth_empty.vgtest)
Copied: trunk/none/tests/pth_exit.c (from rev 4052, trunk/corecheck/tests=
/pth_exit.c)
Copied: trunk/none/tests/pth_exit.stderr.exp (from rev 4052, trunk/corech=
eck/tests/pth_exit.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_exit.stderr.exp 2005-06-29 10:16:14 UTC (re=
v 4052)
+++ trunk/none/tests/pth_exit.stderr.exp 2005-06-30 02:15:59 UTC (rev 406=
0)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_exit.vgtest (from rev 4052, trunk/corecheck/=
tests/pth_exit.vgtest)
Copied: trunk/none/tests/pth_exit2.c (from rev 4052, trunk/corecheck/test=
s/pth_exit2.c)
Copied: trunk/none/tests/pth_exit2.stderr.exp (from rev 4052, trunk/corec=
heck/tests/pth_exit2.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_exit2.stderr.exp 2005-06-29 10:16:14 UTC (r=
ev 4052)
+++ trunk/none/tests/pth_exit2.stderr.exp 2005-06-30 02:15:59 UTC (rev 40=
60)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_exit2.vgtest (from rev 4052, trunk/corecheck=
/tests/pth_exit2.vgtest)
Copied: trunk/none/tests/pth_mutexspeed.c (from rev 4052, trunk/corecheck=
/tests/pth_mutexspeed.c)
Copied: trunk/none/tests/pth_mutexspeed.stderr.exp (from rev 4052, trunk/=
corecheck/tests/pth_mutexspeed.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_mutexspeed.stderr.exp 2005-06-29 10:16:14 U=
TC (rev 4052)
+++ trunk/none/tests/pth_mutexspeed.stderr.exp 2005-06-30 02:15:59 UTC (r=
ev 4060)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_mutexspeed.stdout.exp (from rev 4052, trunk/=
corecheck/tests/pth_mutexspeed.stdout.exp)
Copied: trunk/none/tests/pth_mutexspeed.vgtest (from rev 4052, trunk/core=
check/tests/pth_mutexspeed.vgtest)
Copied: trunk/none/tests/pth_once.c (from rev 4052, trunk/corecheck/tests=
/pth_once.c)
Copied: trunk/none/tests/pth_once.stderr.exp (from rev 4052, trunk/corech=
eck/tests/pth_once.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_once.stderr.exp 2005-06-29 10:16:14 UTC (re=
v 4052)
+++ trunk/none/tests/pth_once.stderr.exp 2005-06-30 02:15:59 UTC (rev 406=
0)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_once.stdout.exp (from rev 4052, trunk/corech=
eck/tests/pth_once.stdout.exp)
Copied: trunk/none/tests/pth_once.vgtest (from rev 4052, trunk/corecheck/=
tests/pth_once.vgtest)
Copied: trunk/none/tests/pth_rwlock.c (from rev 4052, trunk/corecheck/tes=
ts/pth_rwlock.c)
Copied: trunk/none/tests/pth_rwlock.stderr.exp (from rev 4052, trunk/core=
check/tests/pth_rwlock.stderr.exp)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/corecheck/tests/pth_rwlock.stderr.exp 2005-06-29 10:16:14 UTC (=
rev 4052)
+++ trunk/none/tests/pth_rwlock.stderr.exp 2005-06-30 02:15:59 UTC (rev 4=
060)
@@ -0,0 +1,2 @@
+
+
Copied: trunk/none/tests/pth_rwlock.vgtest (from rev 4052, trunk/corechec=
k/tests/pth_rwlock.vgtest)
|