* gdb.base/solib-weak.exp (do_test): Adjust the file names for each
authorDaniel Jacobowitz <drow@false.org>
Wed, 12 Sep 2007 15:12:53 +0000 (15:12 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 12 Sep 2007 15:12:53 +0000 (15:12 +0000)
test.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/solib-weak.exp

index f999c0c64536cf0fac825c7b378d9b13a3fd39a9..ab73ca5bb3c285eda186d336cc42a23866d07ad0 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-12  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.base/solib-weak.exp (do_test): Adjust the file names for each
+       test.
+
 2007-09-10  Mark Kettenis  <kettenis@gnu.org>
 
        * lib/gdb.exp (build_id_debug_filename_get): Improve check for
index 0386de9183374e4c04a01c1065cf292fb6372422..e5fb580e28e6cbd03b9fdeab9ce5337883da2743 100644 (file)
@@ -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
 
This page took 0.053196 seconds and 4 git commands to generate.