From 4ee6625b5326ffb404d88b0befc9d8e4633024ed Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 28 Jul 2003 00:57:29 +0000 Subject: [PATCH] * gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL pattern. * gdb.threads/tls-shared.exp: Don't use gdb_suppress_entire_file. * gdb.threads/tls.exp: Recognize one case of the host library not supporting TLS. --- gdb/testsuite/ChangeLog | 8 ++++++++ gdb/testsuite/gdb.threads/print-threads.exp | 2 +- gdb/testsuite/gdb.threads/tls-shared.exp | 2 +- gdb/testsuite/gdb.threads/tls.exp | 6 ++++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 548655a..4bcac1b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2003-07-27 Daniel Jacobowitz + + * gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL + pattern. + * gdb.threads/tls-shared.exp: Don't use gdb_suppress_entire_file. + * gdb.threads/tls.exp: Recognize one case of the host library not + supporting TLS. + 2003-07-27 Andrew Cagney * gdb.base/fileio.exp: Use SH when running commands using diff --git a/gdb/testsuite/gdb.threads/print-threads.exp b/gdb/testsuite/gdb.threads/print-threads.exp index 71ee589..5d6fd8d 100644 --- a/gdb/testsuite/gdb.threads/print-threads.exp +++ b/gdb/testsuite/gdb.threads/print-threads.exp @@ -94,7 +94,7 @@ proc test_all_threads { name kill } { fail "all threads ran once ($name) (total $i threads ran)" } } - -re "Program received signal SIGTRAP.*Thread \[0-9\]* \\(zombie\\).*$gdb_prompt $" { + -re "Program received signal SIGTRAP.*(Thread \[0-9\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" { if { $kill == 1 } { kfail "gdb/1265" "Running threads ($name) (zombie thread)" } else { diff --git a/gdb/testsuite/gdb.threads/tls-shared.exp b/gdb/testsuite/gdb.threads/tls-shared.exp index e8c536b..fc5c086 100644 --- a/gdb/testsuite/gdb.threads/tls-shared.exp +++ b/gdb/testsuite/gdb.threads/tls-shared.exp @@ -78,7 +78,7 @@ if { ($gcc_compiled } if {[gdb_compile_pthreads "${objdir}/${subdir}/${testfile}.o ${objdir}/${subdir}/${libfile}.so" "${binfile}" executable [list debug $additional_flags]] != ""} { - gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." + return -1 } diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp index 3a2b7fe..5337626 100644 --- a/gdb/testsuite/gdb.threads/tls.exp +++ b/gdb/testsuite/gdb.threads/tls.exp @@ -172,6 +172,12 @@ gdb_test "b [gdb_get_line_number "before exit"]" \ send_gdb "continue\n" gdb_expect { + -re ".*Program received signal SIGSEGV.*a_thread_local = 0;.*$gdb_prompt $" { + # This is the first symptom if the gcc and binutils versions + # in use support TLS, but the system glibc does not. + unsupported "continue to first thread: system does not support TLS" + return -1 + } -re ".*Program exited normally.*$gdb_prompt $" { fail "continue to first thread: program runaway" } -- 2.7.4