aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2016-03-01 12:43:55 +0100
committerAndreas Arnez <arnez@linux.vnet.ibm.com>2016-03-01 12:43:55 +0100
commit4a9321595003d86dd4794d0edab071f91989808e (patch)
treedd41986e88d9059bf1e5e449421837d28f8034fa
parentf24894771e384b1bc60dc0f2c104d7e7fad3c865 (diff)
downloadbinutils-4a9321595003d86dd4794d0edab071f91989808e.zip
binutils-4a9321595003d86dd4794d0edab071f91989808e.tar.gz
binutils-4a9321595003d86dd4794d0edab071f91989808e.tar.bz2
S390: Fix output path for s390-tdbregs test case
Since test artifacts are always organized in a directory hierarchy, the s390-tdbregs test case is not executed correctly any more. This is because it uses an obsolete way of constructing the executable's path. This change invokes prepare_for_testing instead. gdb/testsuite/ChangeLog: * gdb.arch/s390-tdbregs.exp: Use prepare_for_testing instead of manually constructing the output path.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.arch/s390-tdbregs.exp17
2 files changed, 7 insertions, 15 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 84f963c..00fe95d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
+ * gdb.arch/s390-tdbregs.exp: Use prepare_for_testing instead of
+ manually constructing the output path.
+
+2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
* gdb.arch/s390-stackless.S: New.
* gdb.arch/s390-stackless.exp: New.
diff --git a/gdb/testsuite/gdb.arch/s390-tdbregs.exp b/gdb/testsuite/gdb.arch/s390-tdbregs.exp
index 113125d..a377668 100644
--- a/gdb/testsuite/gdb.arch/s390-tdbregs.exp
+++ b/gdb/testsuite/gdb.arch/s390-tdbregs.exp
@@ -24,25 +24,12 @@ if { ![istarget s390-*-*] && ![istarget s390x-*-* ] } {
return
}
-set testfile "s390-tdbregs"
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile .c
-if { [get_compiler_info] } {
+if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
- executable [list debug]] != "" } {
- fail "compile failed"
- return
-}
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
if { ![runto_main] } then {
gdb_suppress_tests
}