From 7e749e311ae6a156622ff155a580bbfb3b6d9b32 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 7 Mar 2008 18:44:26 +0000 Subject: [PATCH] Modified pth_detached test program such that each dot printed by the detached threads is now printed on a line by itself. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7583 --- exp-drd/tests/pth_detached.c | 4 ++-- exp-drd/tests/pth_detached.stdout.exp | 4 +++- exp-drd/tests/pth_detached2.stdout.exp | 22 +++++++++++++++++++++- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/exp-drd/tests/pth_detached.c b/exp-drd/tests/pth_detached.c index 5f20a250ad..f3461d7a66 100644 --- a/exp-drd/tests/pth_detached.c +++ b/exp-drd/tests/pth_detached.c @@ -30,7 +30,7 @@ int get_finished_count() static void* thread_func1(void* arg) { - write(STDOUT_FILENO, ".", 1); + write(STDOUT_FILENO, ".\n", 2); increment_finished_count(); return 0; } @@ -38,7 +38,7 @@ static void* thread_func1(void* arg) static void* thread_func2(void* arg) { pthread_detach(pthread_self()); - write(STDOUT_FILENO, ".", 1); + write(STDOUT_FILENO, ".\n", 2); increment_finished_count(); return 0; } diff --git a/exp-drd/tests/pth_detached.stdout.exp b/exp-drd/tests/pth_detached.stdout.exp index f3229c5b98..727e81ea6c 100644 --- a/exp-drd/tests/pth_detached.stdout.exp +++ b/exp-drd/tests/pth_detached.stdout.exp @@ -1 +1,3 @@ -.. +. +. + diff --git a/exp-drd/tests/pth_detached2.stdout.exp b/exp-drd/tests/pth_detached2.stdout.exp index 01bfb0256c..b6c290864f 100644 --- a/exp-drd/tests/pth_detached2.stdout.exp +++ b/exp-drd/tests/pth_detached2.stdout.exp @@ -1 +1,21 @@ -.................... +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. +. + -- 2.47.3