|
From: Tom H. <th...@cy...> - 2004-10-28 13:39:55
|
CVS commit by thughes:
Remove the thread numbers from the messages output by pth_once so that
the order the threads run in doesn't affect the output.
M +1 -2 pth_once.c 1.4 [POSSIBLY UNSAFE: printf]
M +10 -10 pth_once.stdout.exp 1.4
--- valgrind/corecheck/tests/pth_once.c #1.3:1.4
@@ -40,5 +40,4 @@ void welcome(void)
void *identify_yourself(void *arg)
{
- int *pid=(int *)arg;
int rtn;
@@ -48,5 +47,5 @@ void *identify_yourself(void *arg)
pthread_exit((void *)NULL);
}
- printf("identify_yourself: Hi, I'm thread # %d\n",*pid);
+ printf("identify_yourself: Hi, I'm a thread\n");
return(NULL);
}
--- valgrind/corecheck/tests/pth_once.stdout.exp #1.3:1.4
@@ -1,12 +1,12 @@
welcome: Welcome
-identify_yourself: Hi, I'm thread # 0
-identify_yourself: Hi, I'm thread # 1
-identify_yourself: Hi, I'm thread # 2
-identify_yourself: Hi, I'm thread # 3
-identify_yourself: Hi, I'm thread # 4
-identify_yourself: Hi, I'm thread # 5
-identify_yourself: Hi, I'm thread # 6
-identify_yourself: Hi, I'm thread # 7
-identify_yourself: Hi, I'm thread # 8
-identify_yourself: Hi, I'm thread # 9
+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
|