[08/14] gdb/testsuite: Fix bug in break-unload-file
Commit Message
From: Anton Kolesov <Anton.Kolesov@synopsys.com>
Test cases should call prepare_for_testing instead of build_executable,
otherwise path to current executable will be unchanged - set to the one
left from the previous testcase.
gdb/testsuite/ChangeLog:
2016-07-15 Anton Kolesov <Anton.Kolesov@synopsys.com>
* gdb.base/break-unload-file.exp: Use "prepare_for_testing"
instead of "build_executable".
Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
---
gdb/testsuite/gdb.base/break-unload-file.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -18,7 +18,7 @@
standard_testfile
-if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
return -1
}