From 7a551a515815a9888c6117bc5fb8ad49c7fa55a0 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 9 Sep 2015 11:17:36 -0700 Subject: [PATCH] * 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. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/pie-execl.exp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 96194471ecc..1033a240980 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-09-09 Doug Evans + + * gdb.base/pie-execl.exp: Fix result test of build_executable. + 2015-09-09 Doug Evans * gdb.base/savedregs.exp: Fix typo. diff --git a/gdb/testsuite/gdb.base/pie-execl.exp b/gdb/testsuite/gdb.base/pie-execl.exp index 41411d5dd6d..182f96f7eda 100644 --- a/gdb/testsuite/gdb.base/pie-execl.exp +++ b/gdb/testsuite/gdb.base/pie-execl.exp @@ -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 } -- 2.30.2