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

Message ID 20200207150003.8383-9-shahab.vahedi@gmail.com
State New
Headers show
Series
  • Fixes for GDB Testsuites
Related show

Commit Message

Shahab Vahedi Feb. 7, 2020, 2:59 p.m.
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(-)

-- 
2.25.0

Patch

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
 }