aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/attach-pie-misread.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-06-27 18:47:53 +0000
committerTom Tromey <tromey@redhat.com>2013-06-27 18:47:53 +0000
commita64d25307da684e22f98b1bc19db43fb7d104999 (patch)
tree93789a696087acbce54badb589761f41ce71c7d8 /gdb/testsuite/gdb.base/attach-pie-misread.exp
parent97f8dd09807815bafe225641b68c8526ba7756cc (diff)
downloadgdb-a64d25307da684e22f98b1bc19db43fb7d104999.zip
gdb-a64d25307da684e22f98b1bc19db43fb7d104999.tar.gz
gdb-a64d25307da684e22f98b1bc19db43fb7d104999.tar.bz2
test suite update - gdb.base/[ab]
Convert files gdb.base/[ab]*.exp to use standard_output_file et al. * a2-run.exp, all-bin.exp, annota1.exp, annota3.exp, anon.exp, args.exp, arithmet.exp, arrayidx.exp, assign.exp, async-shell.exp, async.exp, attach-pie-misread.exp, attach-pie-noexec.exp, attach-twice.exp, attach.exp, auxv.exp, bang.exp, bfp-test.exp, bigcore.exp, bitfields.exp, bitfields2.exp, break-entry.exp, break-interp.exp, break-on-linker-gcd-function.exp, breakpoint-shadow.exp: Use standard_testfile, standard_output_file, prepare_for_testing, clean_restart.
Diffstat (limited to 'gdb/testsuite/gdb.base/attach-pie-misread.exp')
-rw-r--r--gdb/testsuite/gdb.base/attach-pie-misread.exp10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.base/attach-pie-misread.exp b/gdb/testsuite/gdb.base/attach-pie-misread.exp
index 0640a63..443804d 100644
--- a/gdb/testsuite/gdb.base/attach-pie-misread.exp
+++ b/gdb/testsuite/gdb.base/attach-pie-misread.exp
@@ -21,13 +21,11 @@ if { ![isnative] || [is_remote host] || [target_info exists use_gdb_stub]
load_lib prelink-support.exp
-set test "attach-pie-misread"
-set srcfile ${test}.c
-set genfile ${objdir}/${subdir}/${test}-gen.h
-set executable ${test}
-set binfile ${objdir}/${subdir}/${executable}
+standard_testfile .c
+set genfile [standard_output_file ${testfile}-gen.h]
+set executable $testfile
-if {[build_executable_own_libs ${test}.exp $executable $srcfile [list additional_flags=-fPIE ldflags=-pie]] == ""} {
+if {[build_executable_own_libs ${testfile}.exp $executable $srcfile [list additional_flags=-fPIE ldflags=-pie]] == ""} {
return -1
}