Make ftrace tests work with remote targets
[binutils-gdb.git] / gdb / testsuite / gdb.trace / ftrace.exp
index 4736f0f5fc650163a71de3b83e3d34892b0b177e..23e7d1e9f3eec2d6b4f389ce374d37ea094af874 100644 (file)
@@ -213,7 +213,7 @@ proc test_ftrace_condition { condexp var list } \
 
 gdb_reinitialize_dir $srcdir/$subdir
 
-if { [gdb_test "info sharedlibrary" ".*${libipa}.*" "IPA loaded"] != 0 } {
+if { [gdb_test "info sharedlibrary" ".*[file tail ${libipa}].*" "IPA loaded"] != 0 } {
     untested "Could not find IPA lib loaded"
     return 1
 }