From a64d25307da684e22f98b1bc19db43fb7d104999 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 27 Jun 2013 18:47:53 +0000 Subject: 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. --- gdb/testsuite/gdb.base/auxv.exp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'gdb/testsuite/gdb.base/auxv.exp') diff --git a/gdb/testsuite/gdb.base/auxv.exp b/gdb/testsuite/gdb.base/auxv.exp index b1d066208f4..ab51b2c0421 100644 --- a/gdb/testsuite/gdb.base/auxv.exp +++ b/gdb/testsuite/gdb.base/auxv.exp @@ -24,11 +24,10 @@ if { ! [istarget "*-*-linux*"] && ! [istarget "*-*-solaris*"] } { } -set testfile "auxv" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} -set corefile ${objdir}/${subdir}/${testfile}.corefile -set gcorefile ${objdir}/${subdir}/${testfile}.gcore +standard_testfile .c + +set corefile ${binfile}.corefile +set gcorefile ${binfile}.gcore if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \ {debug additional_flags=-DUSE_RLIMIT}] != "" @@ -40,16 +39,13 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \ # Use a fresh directory to confine the native core dumps. # Make it the working directory for gdb and its child. -set coredir "${objdir}/${subdir}/coredir.[getpid]" +set coredir [standard_output_file coredir.[getpid]] file mkdir $coredir set core_works [expr [isnative] && ! [is_remote target]] # Run GDB on the test program up to where it will dump core. -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} +clean_restart ${binfile} gdb_test_no_output "set print sevenbit-strings" gdb_test_no_output "set width 0" -- cgit v1.2.3-65-gdbad