* gdb.base/pie-execl.exp: Fix result test of build_executable.
authorDoug Evans <dje@google.com>
Wed, 9 Sep 2015 18:17:36 +0000 (11:17 -0700)
committerDoug Evans <dje@google.com>
Wed, 9 Sep 2015 18:17:36 +0000 (11:17 -0700)
gdb/testsuite/ChangeLog:

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

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/pie-execl.exp

index 96194471ecc494fed6b3450d65c7c1f050f9cf29..1033a240980d035a8f2ad695b20a46f63760f8a0 100644 (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.
index 41411d5dd6d8b2ce1e9a4f88083955e1d8886c51..182f96f7eda34aa0e394879c11000f8e61714ad0 100644 (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
 }
 
This page took 0.032156 seconds and 4 git commands to generate.