* gdb.base/pie-execl.exp: Fix result test of build_executable.

gdb/testsuite/ChangeLog:

	* gdb.base/pie-execl.exp: Fix result test of build_executable.
This commit is contained in:
Doug Evans 2015-09-09 11:17:36 -07:00
parent 4c666f844a
commit 7a551a5158
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2015-09-09 Doug Evans <dje@google.com>
* gdb.base/pie-execl.exp: Fix result test of build_executable.
2015-09-09 Doug Evans <dje@google.com>
* gdb.base/savedregs.exp: Fix typo.

View File

@ -37,8 +37,8 @@ set binfile2_test_msg OBJDIR/${subdir}/${executable2}
# file name of the breakpoint.
set opts [list debug additional_flags=-fPIE ldflags=-pie]
if {[build_executable ${testfile}.exp $executable1 $srcfile [concat $opts {additional_flags=-DBIN=1}]] == ""
|| [build_executable ${testfile}.exp $executable2 $srcfile [concat $opts {additional_flags=-DBIN=2}]] == ""} {
if {[build_executable ${testfile}.exp $executable1 $srcfile [concat $opts {additional_flags=-DBIN=1}]] == -1
|| [build_executable ${testfile}.exp $executable2 $srcfile [concat $opts {additional_flags=-DBIN=2}]] == -1} {
return -1
}