diff options
author | Michael Chastain <mec@google.com> | 2003-07-29 21:51:25 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2003-07-29 21:51:25 +0000 |
commit | 51514e061b222877bfd594484905ab3693c837e8 (patch) | |
tree | ffc9489a3a6cc79b169b73fdf6815cb92cd410ec /gdb/testsuite/gdb.threads/tls.exp | |
parent | 2003-07-22 Michael Snyder <msnyder@redhat.com> (diff) | |
download | binutils-gdb-51514e061b222877bfd594484905ab3693c837e8.tar.gz binutils-gdb-51514e061b222877bfd594484905ab3693c837e8.tar.bz2 binutils-gdb-51514e061b222877bfd594484905ab3693c837e8.zip |
2003-07-29 Michael Chastain <mec@shout.net>
* gdb.threads/tls.c (spin): Check errno only if sem_wait
actually failed.
(do_pass): Likewise.
* gdb.threads/tls.exp: Always initialize no_of_threads.
Diffstat (limited to 'gdb/testsuite/gdb.threads/tls.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/tls.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp index 53376264e51..3f74993daa0 100644 --- a/gdb/testsuite/gdb.threads/tls.exp +++ b/gdb/testsuite/gdb.threads/tls.exp @@ -212,6 +212,7 @@ check_thread_local "third" gdb_test "continue" ".*Breakpoint 3.*still alive.*" "continue to synch point" +set no_of_threads 0 send_gdb "info thread\n" gdb_expect { -re "^info thread\[ \t\r\n\]+(\[0-9\]+) Thread.*$gdb_prompt $" { |