From 20c2c024c1e89e402a57e8c3577fb9777709d9a4 Mon Sep 17 00:00:00 2001 From: "Carl E. Love" Date: Fri, 19 Aug 2016 11:06:38 -0700 Subject: Fix missing files for ld when test suite not compiled in the source directory 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 * 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/gdb.arch/vsx-regs.exp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/testsuite/gdb.arch/vsx-regs.exp') diff --git a/gdb/testsuite/gdb.arch/vsx-regs.exp b/gdb/testsuite/gdb.arch/vsx-regs.exp index 58bfab4..307f12a 100644 --- a/gdb/testsuite/gdb.arch/vsx-regs.exp +++ b/gdb/testsuite/gdb.arch/vsx-regs.exp @@ -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] { -- cgit v1.1