diff options
author | Tom Tromey <tromey@redhat.com> | 2013-06-27 18:58:28 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-06-27 18:58:28 +0000 |
commit | 0ab77f5fa21b665be0d099ea8eca2485c2d58f93 (patch) | |
tree | 330ff4740afa674276895da765889a1dc9bea6b8 /gdb/testsuite/gdb.base/skip-solib.exp | |
parent | 822bd149bfa2e13ddfddd092bfc9f2886bf878d8 (diff) | |
download | gdb-0ab77f5fa21b665be0d099ea8eca2485c2d58f93.zip gdb-0ab77f5fa21b665be0d099ea8eca2485c2d58f93.tar.gz gdb-0ab77f5fa21b665be0d099ea8eca2485c2d58f93.tar.bz2 |
test suite update - gdb.base/s*
Convert files gdb.base/s*.exp to use standard_output_file et al.
* gdb.base/save-bp.exp, gdb.base/savedregs.exp,
gdb.base/scope.exp, gdb.base/sep.exp, gdb.base/sepsymtab.exp,
gdb.base/set-lang-auto.exp, gdb.base/setshow.exp,
gdb.base/setvar.exp, gdb.base/shlib-call.exp,
gdb.base/shreloc.exp, gdb.base/sigall.exp,
gdb.base/sigaltstack.exp, gdb.base/sigbpt.exp,
gdb.base/sigchld.exp, gdb.base/siginfo-addr.exp,
gdb.base/siginfo-infcall.exp, gdb.base/siginfo-obj.exp,
gdb.base/siginfo.exp, gdb.base/signals.exp, gdb.base/signest.exp,
gdb.base/signull.exp, gdb.base/sigrepeat.exp,
gdb.base/sigstep.exp, gdb.base/sizeof.exp,
gdb.base/skip-solib.exp, gdb.base/so-impl-ld.exp,
gdb.base/solib-display.exp, gdb.base/solib-nodir.exp,
gdb.base/solib-overlap.exp, gdb.base/solib-symbol.exp,
gdb.base/solib-weak.exp, gdb.base/source.exp,
gdb.base/stack-checking.exp, gdb.base/stale-infcall.exp,
gdb.base/stap-probe.exp, gdb.base/start.exp,
gdb.base/step-break.exp, gdb.base/step-bt.exp,
gdb.base/step-line.exp, gdb.base/step-resume-infcall.exp,
gdb.base/step-test.exp, gdb.base/structs.exp,
gdb.base/structs2.exp, gdb.base/structs3.exp,
gdb.base/symbol-without-target_section.exp: Use standard_testfile,
standard_output_file, prepare_for_testing, clean_restart.
Diffstat (limited to 'gdb/testsuite/gdb.base/skip-solib.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/skip-solib.exp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/skip-solib.exp b/gdb/testsuite/gdb.base/skip-solib.exp index 14bf6bf..f618fc5 100644 --- a/gdb/testsuite/gdb.base/skip-solib.exp +++ b/gdb/testsuite/gdb.base/skip-solib.exp @@ -27,10 +27,10 @@ if { ![isnative] || [is_remote host] || ![istarget *-linux*] || [skip_shlib_test set test "skip-solib" set srcfile_main "${test}-main.c" set executable_main ${test}-test -set binfile_main ${objdir}/${subdir}/${executable_main} +set binfile_main [standard_output_file ${executable_main}] set srcfile_lib "${test}-lib.c" set libname "lib${test}" -set binfile_lib ${objdir}/${subdir}/${libname}.so +set binfile_lib [standard_output_file ${libname}.so] # # Compile our program under test. The main program references a shared library @@ -47,9 +47,10 @@ if {[gdb_compile "${srcdir}/${subdir}/${srcfile_main}" "${binfile_main}.o" objec return -1 } +set testobjdir [standard_output_file {}] if {[gdb_compile "${binfile_main}.o" "${binfile_main}" executable \ - [list debug "additional_flags=-L${objdir}/${subdir} -l${test} \ - -Wl,-rpath=${objdir}/${subdir}"]] != ""} { + [list debug "additional_flags=-L$testobjdir -l${test} \ + -Wl,-rpath=$testobjdir"]] != ""} { return -1 } |