d945816
--- gdb-6.6/gdb/testsuite/gdb.threads/staticthreads.exp-orig	2005-04-30 21:56:47.000000000 +0200
d945816
+++ gdb-6.6/gdb/testsuite/gdb.threads/staticthreads.exp	2008-01-11 14:30:15.000000000 +0100
d945816
@@ -44,9 +44,21 @@ gdb_load ${binfile}
d945816
 gdb_test "set print sevenbit-strings" ""
d945816
 
d945816
 
d945816
+runto_main
d945816
+
d945816
+# See if we get excessive LWP there (patched glibc with unpatched GDB):
d945816
+# * 2 Thread 135661664 (LWP 3856)  main () at threadloop.c:41
d945816
+#   1 process 3856  main () at threadloop.c:41
d945816
+
d945816
+set test "info threads on start"
d945816
+gdb_test_multiple "info threads" "$test" {
d945816
+    -re "^info threads\r?\n\[^\r\n\]* Thread \[^\r\n\]*\r?\n$gdb_prompt" {
d945816
+	pass "$test"
d945816
+    }
d945816
+}
d945816
+
d945816
 # See if the static multi-threaded program runs.
d945816
 
d945816
-runto_main
d945816
 gdb_test "break sem_post"
d945816
 set test "Continue to main's call of sem_post"
d945816
 gdb_test_multiple "continue" "$test" {