diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/detach.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/detach.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/detach.exp b/gdb/testsuite/gdb.base/detach.exp index 1556cf9..1f86fec 100644 --- a/gdb/testsuite/gdb.base/detach.exp +++ b/gdb/testsuite/gdb.base/detach.exp @@ -40,6 +40,7 @@ if [is_remote target] then { set testfile "attach" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} +set escapedbinfile [string_to_regexp ${objdir}/${subdir}/${testfile}] if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." @@ -48,12 +49,13 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb proc do_detach_tests {} { global srcdir global binfile + global escapedbinfile global subdir global pass runto_main gdb_test "set should_exit = 1" "" "set should_exit, $pass" - gdb_test "detach" "Detaching from program: .*$binfile, .*" "detach, $pass" + gdb_test "detach" "Detaching from program: .*$escapedbinfile, .*" "detach, $pass" } # Start with a fresh gdb |