summaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorMichael Chastain <mec.gnu@mindspring.com>2003-11-28 03:31:24 +0000
committerMichael Chastain <mec.gnu@mindspring.com>2003-11-28 03:31:24 +0000
commit8bff5626574bb72ac47456128dcbc1fb75e30ddc (patch)
treebfb8b2fc583d4c3d5ef1f9d526d9f18dd8925f26 /gdb/testsuite
parent8314ce401684f23e46be699293c610a978758bf1 (diff)
downloadgdb-8bff5626574bb72ac47456128dcbc1fb75e30ddc.tar.gz
2003-11-27 Michael Chastain <mec.gnu@mindspring.com>
Partial fix for PR testsuite/1456. * gdb.base/volatile.exp: Replace references to gcc_compiled with calls to test_compiler_info.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.base/volatile.exp6
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b11eacdadd5..e9759cbc6bc 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-27 Michael Chastain <mec.gnu@mindspring.com>
+
+ Partial fix for PR testsuite/1456.
+ * gdb.base/volatile.exp: Replace references to gcc_compiled with
+ calls to test_compiler_info.
+
2003-11-27 Mark Kettenis <kettenis@gnu.org>
* gdb.base/structs.exp: Use i*86-*-* instead of i686-*-* as a
diff --git a/gdb/testsuite/gdb.base/volatile.exp b/gdb/testsuite/gdb.base/volatile.exp
index 704369605eb..faf62b9847b 100644
--- a/gdb/testsuite/gdb.base/volatile.exp
+++ b/gdb/testsuite/gdb.base/volatile.exp
@@ -88,9 +88,7 @@ if ![runto_main] then {
get_debug_format
proc local_compiler_xfail_check { } {
- global gcc_compiled;
-
- if {$gcc_compiled == 2} then {
+ if { [test_compiler_info gcc-2-*] } then {
if { ![test_debug_format "HP"] \
&& ![test_debug_format "DWARF 2"] } then {
setup_xfail "*-*-*"
@@ -258,7 +256,7 @@ gdb_test "ptype vendor" "type = const volatile unsigned char \\* const volatile.
# test function parameters
local_compiler_xfail_check
-if {$gcc_compiled == 3 && [test_debug_format "stabs"]} then {
+if { [test_compiler_info gcc-3-*] && [test_debug_format "stabs"] } then {
# For reasons unknown, GCC 3 with stabs mangles several cv-qualified
# arguments to this function.
setup_xfail "*-*-*"