aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/shadow.exp
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-03-29 20:35:19 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-03-29 20:35:19 +0000
commit1da644f0333980957e4156aa7de86b971126771f (patch)
treeea331e3af95930bc852764ce64cf59250b286779 /gdb/testsuite/gdb.cp/shadow.exp
parenta040585484dfbff0ff6eaa413b5db33d6c1477ed (diff)
downloadfsf-binutils-gdb-1da644f0333980957e4156aa7de86b971126771f.zip
fsf-binutils-gdb-1da644f0333980957e4156aa7de86b971126771f.tar.gz
fsf-binutils-gdb-1da644f0333980957e4156aa7de86b971126771f.tar.bz2
2010-03-29 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/nsusing.exp: Marked imported declaration test as xfail with gcc < 4.4. * gdb.cp/shadow.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.cp/shadow.exp')
-rw-r--r--gdb/testsuite/gdb.cp/shadow.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/shadow.exp b/gdb/testsuite/gdb.cp/shadow.exp
index 40c35a4..945cf99 100644
--- a/gdb/testsuite/gdb.cp/shadow.exp
+++ b/gdb/testsuite/gdb.cp/shadow.exp
@@ -31,6 +31,10 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
return -1
}
+if [get_compiler_info ${binfile}] {
+ return -1
+}
+
# Get things started.
gdb_exit
@@ -85,4 +89,9 @@ gdb_test "print x" "= 55" "Print local x not namespace x"
gdb_breakpoint [gdb_get_line_number "marker5"]
gdb_continue_to_breakpoint "marker5"
+if { [test_compiler_info {gcc-[0-3]-*}] ||
+ [test_compiler_info {gcc-4-[0-3]-*}]} {
+ setup_xfail *-*-*
+}
+
gdb_test "print x" "= 11" "Print imported namespace x"