aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2002-09-03 22:29:14 +0000
committerKeith Seitz <keiths@redhat.com>2002-09-03 22:29:14 +0000
commit0ae67eb394899fb13fb8fb3edd33391d849a0bf9 (patch)
tree5c0c4fe616787b2a288d77cd930438081d5e14f2
parent8a55a7c51f6a9c5ba6e7dbadf4799c235bb5b310 (diff)
downloadgdb-0ae67eb394899fb13fb8fb3edd33391d849a0bf9.zip
gdb-0ae67eb394899fb13fb8fb3edd33391d849a0bf9.tar.gz
gdb-0ae67eb394899fb13fb8fb3edd33391d849a0bf9.tar.bz2
* 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/ChangeLog6
-rw-r--r--gdb/testsuite/lib/gdb.exp4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 1333754..d0f9ef2 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-03 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-09-03 Jim Blandy <jimb@redhat.com>
* gdb.threads/killed.exp, gdb.threads/killed.c: New test.
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 8949910..f4ddc63 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
}