summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-06-02 16:49:22 -0700
committerRoland McGrath <roland@redhat.com>2009-06-02 16:49:22 -0700
commiteb9e2e8904ce85a6c7390be25bb873c6db88c4d3 (patch)
tree4e967c58b6d1ff962835d0dd034ba1d1214268b4 /test
parent4ac9d627f4b8d2022958668e5c2f3b784605cb16 (diff)
downloadstrace-eb9e2e8904ce85a6c7390be25bb873c6db88c4d3.tar.gz
strace-eb9e2e8904ce85a6c7390be25bb873c6db88c4d3.tar.bz2
strace-eb9e2e8904ce85a6c7390be25bb873c6db88c4d3.tar.xz
Revert unapproved commits.
Diffstat (limited to 'test')
-rw-r--r--test/childthread.c2
-rw-r--r--test/leaderkill.c2
-rw-r--r--test/many_looping_threads.c39
3 files changed, 2 insertions, 41 deletions
diff --git a/test/childthread.c b/test/childthread.c
index e89fb14..c580db2 100644
--- a/test/childthread.c
+++ b/test/childthread.c
@@ -1,7 +1,7 @@
/* Test exit of a child of a TCB_EXITING child where the toplevel process starts
* waiting on it. The middle one gets detached and strace must update the
* toplevel process'es number of attached children to 0.
- *
+ *
* gcc -o test/childthread test/childthread.c -Wall -ggdb2 -pthread;./strace -f ./test/childthread
* It must print: write(1, "OK\n", ...
*/
diff --git a/test/leaderkill.c b/test/leaderkill.c
index ebb6ad1..67d5de1 100644
--- a/test/leaderkill.c
+++ b/test/leaderkill.c
@@ -1,7 +1,7 @@
/* Test handle_group_exit () handling of a thread leader still alive with its
* thread child calling exit_group () and proper passing of the process exit
* code to the process parent of this whole thread group.
- *
+ *
* gcc -o test/leaderkill test/leaderkill.c -Wall -ggdb2 -pthread;./test/leaderkill & pid=$!;sleep 1;strace -o x -q ./strace -f -p $pid
* It must print: write(1, "OK\n", ...
*/
diff --git a/test/many_looping_threads.c b/test/many_looping_threads.c
deleted file mode 100644
index 1f1fe05..0000000
--- a/test/many_looping_threads.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* This test is not yet added to Makefile */
-
-#include <stdio.h>
-#include <pthread.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <signal.h>
-#include <stdlib.h>
-
-static int thd_no;
-
-static void *sub_thd(void *c)
-{
- fprintf(stderr, "sub-thread %d created\n", ++thd_no);
- for (;;)
- getuid();
- return NULL;
-}
-
-int main(int argc, char *argv[])
-{
- int i;
- pthread_t *thd;
- int num_threads = 1;
-
- if (argv[1])
- num_threads = atoi(argv[1]);
-
- thd = malloc(num_threads * sizeof(thd[0]));
- fprintf(stderr, "test start, num_threads:%d...\n", num_threads);
-
- for (i = 0; i < num_threads; i++) {
- pthread_create(&thd[i], NULL, sub_thd, NULL);
- fprintf(stderr, "after pthread_create\n");
- }
-
- /* Exit. This kills all threads */
- return 0;
-}