Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] testsuite: altivec-abi.exp: remove obsolete parameter
@ 2012-03-02 17:56 Edjunior Barbosa Machado
  2012-03-02 18:11 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Edjunior Barbosa Machado @ 2012-03-02 17:56 UTC (permalink / raw)
  To: gdb-patches

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
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-02 18:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-02 17:56 [PATCH] testsuite: altivec-abi.exp: remove obsolete parameter Edjunior Barbosa Machado
2012-03-02 18:11 ` Pedro Alves
2012-03-02 18:51   ` Edjunior Barbosa Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox