aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-09-02 19:21:02 +0000
committerPedro Alves <palves@redhat.com>2011-09-02 19:21:02 +0000
commit68e77c9e3085a638cc14b0b76c592441f99261f7 (patch)
tree29030b54f449b2f3443d85cc9762a7ec988eaed1 /gdb/testsuite/gdb.threads
parentb4a14fd09b84468e7d28a2889d99a27008781fb1 (diff)
downloadgdb-68e77c9e3085a638cc14b0b76c592441f99261f7.zip
gdb-68e77c9e3085a638cc14b0b76c592441f99261f7.tar.gz
gdb-68e77c9e3085a638cc14b0b76c592441f99261f7.tar.bz2
2011-09-02 Pedro Alves <pedro@codesourcery.com>
gdb/testsuite/ * gdb.threads/gcore-thread.exp: Set the global core_supported to 0, before testing gcore.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/gcore-thread.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.threads/gcore-thread.exp b/gdb/testsuite/gdb.threads/gcore-thread.exp
index fc5a3cc..db158d8 100644
--- a/gdb/testsuite/gdb.threads/gcore-thread.exp
+++ b/gdb/testsuite/gdb.threads/gcore-thread.exp
@@ -100,6 +100,7 @@ gdb_test "continue" "Continuing.*Breakpoint.* thread2 .*" "thread 2 is running"
set escapedfilename [string_to_regexp $corefile]
# Drop corefile
+set core_supported 0
gdb_test_multiple "gcore $corefile" "save a corefile" \
{
-re "Saved corefile ${escapedfilename}\[\r\n\]+$gdb_prompt $" {
@@ -109,12 +110,9 @@ gdb_test_multiple "gcore $corefile" "save a corefile" \
}
-re "Can't create a corefile\[\r\n\]+$gdb_prompt $" {
unsupported "save a corefile"
- global core_supported
- set core_supported 0
}
}
-global core_supported
if {!$core_supported} {
return -1
}