aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/solib-weak.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-09-12 15:12:53 +0000
committerDaniel Jacobowitz <drow@false.org>2007-09-12 15:12:53 +0000
commit40b53987702c22f0ce9d5363fc493919517fa70a (patch)
treee1fd666ad14f38c707b299d1a1d96c6a31eb51fd /gdb/testsuite/gdb.base/solib-weak.exp
parentae91ad40e9ad11f9141b0940215201cfb4f8f992 (diff)
downloadgdb-40b53987702c22f0ce9d5363fc493919517fa70a.zip
gdb-40b53987702c22f0ce9d5363fc493919517fa70a.tar.gz
gdb-40b53987702c22f0ce9d5363fc493919517fa70a.tar.bz2
* gdb.base/solib-weak.exp (do_test): Adjust the file names for each
test.
Diffstat (limited to 'gdb/testsuite/gdb.base/solib-weak.exp')
-rw-r--r--gdb/testsuite/gdb.base/solib-weak.exp21
1 files changed, 14 insertions, 7 deletions
diff --git a/gdb/testsuite/gdb.base/solib-weak.exp b/gdb/testsuite/gdb.base/solib-weak.exp
index 0386de9..e5fb580 100644
--- a/gdb/testsuite/gdb.base/solib-weak.exp
+++ b/gdb/testsuite/gdb.base/solib-weak.exp
@@ -41,31 +41,38 @@ if {![test_compiler_info "gcc-*"]} {
proc do_test { lib1opts lib2opts lib1first } {
global objdir srcdir subdir
+ set testfile "solib-weak"
+ set srcfile ${testfile}.c
+
+ set libfile1 "weaklib1"
+ set libfile2 "weaklib2"
+ set lib1src ${srcdir}/${subdir}/${libfile1}.c
+ set lib2src ${srcdir}/${subdir}/${libfile2}.c
+
+ # Select a unique name for this test. Give each library and
+ # executable a name reflecting its options, so that file caching
+ # on the target system does not pick up the wrong file.
set testopts ""
if {$lib1opts == ""} {
append testopts "lib1 nodebug, "
} else {
append testopts "lib1 debug, "
+ append lib1 "-dbg"
}
if {$lib2opts == ""} {
append testopts "lib2 nodebug, "
} else {
append testopts "lib2 debug, "
+ append lib2 "-dbg"
}
if {$lib1first} {
append testopts "lib1 first"
} else {
append testopts "lib2 first"
+ append testfile "-lib2"
}
- set testfile "solib-weak"
- set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
-
- set libfile1 "weaklib1"
- set libfile2 "weaklib2"
- set lib1src ${srcdir}/${subdir}/${libfile1}.c
- set lib2src ${srcdir}/${subdir}/${libfile2}.c
set lib1 ${objdir}/${subdir}/${libfile1}.sl
set lib2 ${objdir}/${subdir}/${libfile2}.sl