aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/default.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-07-07 18:49:51 +0000
committerDoug Evans <dje@google.com>2010-07-07 18:49:51 +0000
commit2dfb8c17712f0922994fef3476015e5789d2a24b (patch)
treef2bc6f90a66bfab39529fa5f47704c00a5e15a24 /gdb/testsuite/gdb.base/default.exp
parent797054e63d0f9e5c0e8429ed80e31aa26d5365a3 (diff)
downloadgdb-2dfb8c17712f0922994fef3476015e5789d2a24b.zip
gdb-2dfb8c17712f0922994fef3476015e5789d2a24b.tar.gz
gdb-2dfb8c17712f0922994fef3476015e5789d2a24b.tar.bz2
* lib/gdb.exp (gdb_test_list_exact): New function.
* gdb.base/default.exp (show convenience): Call it, add tests for $_sdata = void, $_thread = 0.
Diffstat (limited to 'gdb/testsuite/gdb.base/default.exp')
-rw-r--r--gdb/testsuite/gdb.base/default.exp13
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index 283745a..64d4c9d 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -567,8 +567,19 @@ gdb_test "show commands" ".*" "show commands"
gdb_test "show complaints" "Max number of complaints about incorrect symbols is 0." "show complaints"
#test show confirm
gdb_test "show confirm" "Whether to confirm potentially dangerous operations is o\[a-z\]*." "show confirm"
+
#test show convenience
-gdb_test "show convenience" "\\\$_siginfo = void" "show convenience"
+# This is tricker as there are multiple internal convenience vars and we
+# can't assume any particular order.
+gdb_test_list_exact "show convenience" "show convenience" \
+ {[^\r\n]+[\r\n]+} \
+ {[^\r\n]+} \
+ { \
+ {$_sdata = void} \
+ {$_siginfo = void} \
+ {$_thread = 0} \
+ }
+
#test show directories
gdb_test "show directories" "Source directories searched: .cdir\[:;\].cwd" "show directories"
#test show editing