]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/jit.exp
* gdb.base/break-interp.exp: Remove ${objdir} from test messages.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / jit.exp
index 6b232ba5dc8ab7ec842afd91082066c1f5a177ff..1b731b0602c84e7ac885107bf4940142a6f66f29 100644 (file)
@@ -43,6 +43,7 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
 set solib_testfile "jit-solib"
 set solib_srcfile "${srcdir}/${subdir}/${solib_testfile}.c"
 set solib_binfile "${objdir}/${subdir}/${solib_testfile}.so"
+set solib_binfile_test_msg "OBJDIR/${subdir}/${solib_testfile}.so"
 
 # Note: compiling without debug info: the library goes through symbol
 # renaming by munging on its symbol table, and that wouldn't work for .debug
@@ -53,7 +54,7 @@ if { [gdb_compile_shlib ${solib_srcfile} ${solib_binfile} {-fPIC}] != "" } {
 }
 
 proc one_jit_test {count match_str} {
-    global verbose testfile solib_binfile pf_prefix
+    global verbose testfile solib_binfile solib_binfile_test_msg pf_prefix
 
     set old_pf_prefix $pf_prefix
     set pf_prefix "one_jit_test-$count"
@@ -75,9 +76,9 @@ proc one_jit_test {count match_str} {
 
     # Poke desired values directly into inferior instead of using "set args"
     # because "set args" does not work under gdbserver.
-    gdb_test "set var argc = 2"
-    gdb_test "set var libname = \"$solib_binfile\""
-    gdb_test "set var count = $count"
+    gdb_test_no_output "set var argc = 2"
+    gdb_test_no_output "set var libname = \"$solib_binfile\"" "set var libname = \"$solib_binfile_test_msg\""
+    gdb_test_no_output "set var count = $count"
 
     gdb_breakpoint [gdb_get_line_number "break here 1"]
     gdb_continue_to_breakpoint "break here 1"