* gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL
authorDaniel Jacobowitz <drow@false.org>
Mon, 28 Jul 2003 00:57:29 +0000 (00:57 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 28 Jul 2003 00:57:29 +0000 (00:57 +0000)
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
gdb/testsuite/gdb.threads/print-threads.exp
gdb/testsuite/gdb.threads/tls-shared.exp
gdb/testsuite/gdb.threads/tls.exp

index 548655aee033f0ce278ad142384ec07460f8550e..4bcac1be58618af30a3180af874365210d2a5959 100644 (file)
@@ -1,3 +1,11 @@
+2003-07-27  Daniel Jacobowitz  <drow@mvista.com>
+
+       * 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  <cagney@redhat.com>
 
        * gdb.base/fileio.exp: Use SH when running commands using
index 71ee5891a66d2f932612da88faa80a52f8870b30..5d6fd8d5c8b330883b2888aeec4e0a33ef0078c6 100644 (file)
@@ -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 {
index e8c536b3bd4661ef8939805a1a4b157f441bd5ec..fc5c0862cc0144e11b8db0cddf23d2583c9302e1 100644 (file)
@@ -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
 }
 
 
index 3a2b7fe886bddfe1f047bb1736e006f684c7cbad..53376264e510ab8666a5e0b8fef0f62c86cbdcf7 100644 (file)
@@ -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"
     }
This page took 0.032217 seconds and 4 git commands to generate.