This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] testsuite: altivec-abi.exp: remove obsolete parameter


Hi,

the current version of gdb.arch/altivec-abi.exp is crashing on ppc64 with
the following:

Running ../../../gdb.git/gdb/testsuite/gdb.arch/altivec-abi.exp ...
ERROR: tcl error sourcing ../../../gdb.git/gdb/testsuite/gdb.arch/altivec-abi.exp.
ERROR: wrong # args: should be "altivec_abi_tests prefix extra_flags force_abi"
    while executing
"altivec_abi_tests  "additional_flags=-maltivec" "auto""
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $body"
    invoked from within
"with_test_prefix "default ABI, auto" {
	altivec_abi_tests  "additional_flags=-maltivec" "auto"
    }"
    invoked from within
"if [test_compiler_info gcc*] {
    with_test_prefix "default ABI, auto" {
	altivec_abi_tests  "additional_flags=-maltivec" "auto"
    }

    # On GNU/..."
    (file "../../../gdb.git/gdb/testsuite/gdb.arch/altivec-abi.exp" line 149)
    invoked from within
"source ../../../gdb.git/gdb/testsuite/gdb.arch/altivec-abi.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source ../../../gdb.git/gdb/testsuite/gdb.arch/altivec-abi.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""

The patch below fixes this issue removing the no longer used parameter 'prefix'
from altivec_abi_tests.

Thanks,
--
Edjunior

gdb/testsuite/
2012-03-02  Edjunior Machado  <emachado@linux.vnet.ibm.com>

	* gdb.arch/altivec-abi.exp (altivec_abi_tests): Remove obsolete
	parameter.

diff --git a/gdb/testsuite/gdb.arch/altivec-abi.exp b/gdb/testsuite/gdb.arch/altivec-abi.exp
index 718018d..74b8f2a 100644
--- a/gdb/testsuite/gdb.arch/altivec-abi.exp
+++ b/gdb/testsuite/gdb.arch/altivec-abi.exp
@@ -36,7 +36,7 @@ if [get_compiler_info $binfile] {
     return -1
 }
 
-proc altivec_abi_tests { prefix extra_flags force_abi } {
+proc altivec_abi_tests { extra_flags force_abi } {
     global testfile binfile srcfile srcdir subdir
     global gdb_prompt
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]