Fix missing files for ld when test suite not compiled in the source directory
authorCarl E. Love <carll@oc4738070240.ibm.com>
Fri, 19 Aug 2016 18:06:38 +0000 (11:06 -0700)
committerCarl E. Love <carll@oc4738070240.ibm.com>
Fri, 19 Aug 2016 18:06:38 +0000 (11:06 -0700)
This patch fixes an issues with six test suite expect files that do not
run correctly when the test suite is not built in the source directory.  The
issue is these tests are not using the current "standard_testfile" call
but rather using the older set command to initialize the "testfile",
"srcfile" and "binprefix" variables or are missing the set for the
"binprefix" variable.

-----------------------------------------------

gdb/testsuite/ChangeLog

2016-08-19  Carl Love  <cel@us.ibm.com>

* gdb.arch/altivec-regs.exp: Use standard_testfile instead of
maintaining separate logic for constructing the output path.
* gdb.arch/powerpc-d128-regs.exp: Likewise.
* gdb.arch/ppc-dfp.exp: Likewise.
* gdb.arch/ppc-fp.exp: Likewise.
* gdb.arch/vsx-regs.exp: Likewise.
* gdb.arch/altivec-abi.exp: Likewise, plus added local variable
binprefix for generating the additional binary files.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/altivec-abi.exp
gdb/testsuite/gdb.arch/altivec-regs.exp
gdb/testsuite/gdb.arch/powerpc-d128-regs.exp
gdb/testsuite/gdb.arch/ppc-dfp.exp
gdb/testsuite/gdb.arch/ppc-fp.exp
gdb/testsuite/gdb.arch/vsx-regs.exp

index ff892a5f7c41d1e9d11e01e5a77fa427b466d8f0..9f45c39654974be3e64c2678acb5a716d4f925c5 100644 (file)
@@ -1,3 +1,14 @@
+2016-08-19  Carl Love  <cel@us.ibm.com>
+
+       * gdb.arch/altivec-regs.exp: Use standard_testfile instead of
+       maintaining separate logic for constructing the output path.
+       * gdb.arch/powerpc-d128-regs.exp: Likewise.
+       * gdb.arch/ppc-dfp.exp: Likewise.
+       * gdb.arch/ppc-fp.exp: Likewise.
+       * gdb.arch/vsx-regs.exp: Likewise.
+       * gdb.arch/altivec-abi.exp: Likewise, plus added local variable
+       binprefix for generating the additional binary files.
+
 2016-08-19  Pedro Alves  <palves@redhat.com>
 
        * gdb.trace/mi-trace-frame-collected.exp
index 13350d279b9f6c7022c23c6d538d0d8f8b887d75..3070fab72f79f8d87d1154c3ac879e724839de7a 100644 (file)
@@ -26,9 +26,7 @@ if {![istarget "powerpc*"] || [skip_altivec_tests]} then {
     return
 }
 
-set testfile "altivec-abi"
-set binfile ${objdir}/${subdir}/${testfile}
-set srcfile ${testfile}.c
+standard_testfile
 
 if [get_compiler_info] {
     warning "get_compiler failed"
@@ -146,6 +144,8 @@ proc altivec_abi_tests { extra_flags force_abi } {
 }
 
 if [test_compiler_info gcc*] {
+    set binprefix ${binfile}
+
     with_test_prefix "default ABI, auto" {
        altivec_abi_tests  "additional_flags=-maltivec" "auto"
     }
@@ -156,23 +156,23 @@ if [test_compiler_info gcc*] {
        # On 64-bit GNU/Linux with GCC 4.1 and 4.2, -mabi=no-altivec
        # was broken, so skip those tests there.
        if { ![is_lp64_target] || ![test_compiler_info "gcc-4-\[12\]-*"] } {
-           set binfile ${objdir}/${subdir}/${testfile}-ge-ge
+           set binfile ${binprefix}-ge-ge
            with_test_prefix "generic ABI, forced" {
                altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=no-altivec" "generic"
            }
 
-           set binfile ${objdir}/${subdir}/${testfile}-ge-auto
+           set binfile ${binprefix}-ge-auto
            with_test_prefix "generic ABI, auto" {
                altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=no-altivec" "auto"
            }
        }
 
-       set binfile ${objdir}/${subdir}/${testfile}-av-av
+       set binfile ${binprefix}-av-av
        with_test_prefix "AltiVec ABI, forced" {
            altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=altivec" "altivec"
        }
 
-       set binfile ${objdir}/${subdir}/${testfile}-av-auto
+       set binfile ${binprefix}-av-auto
        with_test_prefix "AltiVec ABI, auto" {
            altivec_abi_tests "additional_flags=-maltivec additional_flags=-mabi=altivec" "auto"
        }
index 29cf0218c95b737ccf0d93d177f3b9f94706c75c..f02ef26c27744c747d1fec15d16d3cadfd513eb8 100644 (file)
@@ -27,9 +27,7 @@ if {![istarget "powerpc*"] || [skip_altivec_tests]} then {
     return
 }
 
-set testfile "altivec-regs"
-set binfile ${objdir}/${subdir}/${testfile}
-set srcfile ${testfile}.c
+standard_testfile
 
 set compile_flags {debug nowarnings}
 if [get_compiler_info] {
index 333522405162efe8c6f09c95cd44a2e24b72f386..4a08f26a3dfdc49fbf921cccf79ffe3f917b3111 100644 (file)
@@ -25,9 +25,7 @@ if ![istarget "powerpc64*-*"] then {
     return
 }
 
-set testfile "powerpc-d128-regs"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {quiet debug}] != "" } {
      untested powerpc-d128-regs.exp
index 75dc2ce5fabffc914d2e4ee06d9473f02eb8a679..6f77d1895c15ea77390b2b98a003c1f225dc9d05 100644 (file)
@@ -21,9 +21,7 @@ if ![istarget "powerpc*"] then {
     return
 }
 
-set testfile "ppc-dfp"
-set binfile ${objdir}/${subdir}/${testfile}
-set srcfile ${testfile}.c
+standard_testfile
 
 if [get_compiler_info] {
     warning "get_compiler failed"
index b59a3d9a07fec1f13427c11dcf23fb045c562aef..523aaa3f88993f6fcd5cd93c49d29621b78ba757 100644 (file)
@@ -21,9 +21,7 @@ if ![istarget "powerpc*"] then {
     return
 }
 
-set testfile "ppc-fp"
-set binfile ${objdir}/${subdir}/${testfile}
-set srcfile ${testfile}.c
+standard_testfile
 
 if [get_compiler_info] {
     warning "get_compiler failed"
index 58bfab4153a08c3feafc9a6cc80fe1acb30cf28a..307f12ae76e79291da3787b07fc4d07196660e6c 100644 (file)
@@ -24,9 +24,7 @@ if {![istarget "powerpc*"] || [skip_vsx_tests]} then {
     return
 }
 
-set testfile "vsx-regs"
-set binfile ${objdir}/${subdir}/${testfile}
-set srcfile ${testfile}.c
+standard_testfile
 
 set compile_flags {debug nowarnings quiet}
 if [get_compiler_info] {
This page took 0.035856 seconds and 4 git commands to generate.