Use integer comparison instead of string comparison for testing
whether binary was built.
+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.
# 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
}
}
}
- if {$built_binfile == "0"} {
+ if {!$built_binfile} {
unsupported "Couldn't compile $source: ${why_msg}"
return -1
}