summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/pie-execl.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-09-09 11:17:36 -0700
committerDoug Evans <dje@google.com>2015-09-09 11:17:36 -0700
commit7a551a515815a9888c6117bc5fb8ad49c7fa55a0 (patch)
tree063a8834d707bf65fc533a9d8049b5bdeaa42f1d /gdb/testsuite/gdb.base/pie-execl.exp
parent4c666f844a4481749c60f4f1ba6cfc8efd3a4eee (diff)
downloadbinutils-gdb-7a551a515815a9888c6117bc5fb8ad49c7fa55a0.tar.gz
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.base/pie-execl.exp')
-rw-r--r--gdb/testsuite/gdb.base/pie-execl.exp4
1 files changed, 2 insertions, 2 deletions
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
}