[PATCH 08/14] gdb/testsuite: Fix bug in break-unload-file

Shahab Vahedi shahab.vahedi@gmail.com
Fri Feb 7 15:01:00 GMT 2020


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(-)

diff --git a/gdb/testsuite/gdb.base/break-unload-file.exp b/gdb/testsuite/gdb.base/break-unload-file.exp
index f59e727dbca4..ac26b8694bf2 100644
--- a/gdb/testsuite/gdb.base/break-unload-file.exp
+++ b/gdb/testsuite/gdb.base/break-unload-file.exp
@@ -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
 }
 
-- 
2.25.0



More information about the Gdb-patches mailing list