Added a regtest that uses pthreads -- there weren't any.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1966 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am
index e6db903..fb8b8a1 100644
--- a/memcheck/tests/Makefile.am
+++ b/memcheck/tests/Makefile.am
@@ -44,6 +44,7 @@
 	new_override.stderr.exp new_override.vgtest \
 	null_socket.stderr.exp null_socket.vgtest \
 	overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
+	pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \
 	pushfpopf.stderr.exp pushfpopf.stdout.exp pushfpopf.vgtest \
 	realloc1.stderr.exp realloc1.vgtest \
 	realloc2.stderr.exp realloc2.vgtest \
diff --git a/memcheck/tests/pth_once.stderr.exp b/memcheck/tests/pth_once.stderr.exp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/memcheck/tests/pth_once.stderr.exp
diff --git a/memcheck/tests/pth_once.stdout.exp b/memcheck/tests/pth_once.stdout.exp
new file mode 100644
index 0000000..97e25d1
--- /dev/null
+++ b/memcheck/tests/pth_once.stdout.exp
@@ -0,0 +1,22 @@
+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
+main: joined to thread 0
+main: joined to thread 1
+main: joined to thread 2
+main: joined to thread 3
+main: joined to thread 4
+main: joined to thread 5
+main: joined to thread 6
+main: joined to thread 7
+main: joined to thread 8
+main: joined to thread 9
+main: Goodbye
diff --git a/memcheck/tests/pth_once.vgtest b/memcheck/tests/pth_once.vgtest
new file mode 100644
index 0000000..bc571a2
--- /dev/null
+++ b/memcheck/tests/pth_once.vgtest
@@ -0,0 +1,2 @@
+prog: ../../corecheck/tests/pth_once
+vgopts: -q