diff options
author | Keith Seitz <keiths@redhat.com> | 2002-09-04 20:16:32 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2002-09-04 20:16:32 +0000 |
commit | 9a08a9058664d60b7b0a1ba8c67496f9b3897995 (patch) | |
tree | 4c7b7bd4087e2f69fa54ed7cbe6660aec30378af | |
parent | 9d127dd630d32119a44747008fbc8399b9549759 (diff) | |
download | gdb-9a08a9058664d60b7b0a1ba8c67496f9b3897995.tar.gz |
* lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo.
Use integer comparison instead of string comparison for testing
whether binary was built.
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 68165669536..6811f099b24 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-09-04 Keith Seitz <keiths@redhat.com> + + * lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo. + Use integer comparison instead of string comparison for testing + whether binary was built. + 2002-08-29 Keith Seitz <keiths@redhat.com> * lib/mi-support.exp (mi_gdb_test): Add global declaration for diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 8949910b9ec..f4ddc63214d 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1176,7 +1176,7 @@ proc gdb_compile {source dest type options} { # against several different thread libraries, to see which one this # system has. proc gdb_compile_pthreads {source dest type options} { - set build_binfile 0 + set built_binfile 0 set why_msg "unrecognized error" foreach lib {-lpthreads -lpthread -lthread} { # This kind of wipes out whatever libs the caller may have @@ -1201,7 +1201,7 @@ proc gdb_compile_pthreads {source dest type options} { } } } - if {$built_binfile == "0"} { + if {!$built_binfile} { unsupported "Couldn't compile $source: ${why_msg}" return -1 } |