This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] gdb.threads/manythreads.exp: can't read "test": no such variable
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 1 Apr 2015 14:34:05 -0000
- Subject: [binutils-gdb] gdb.threads/manythreads.exp: can't read "test": no such variable
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a14711808ece04167523a42f063ddb741e8ca866
commit a14711808ece04167523a42f063ddb741e8ca866
Author: Pedro Alves <palves@redhat.com>
Date: Tue Mar 31 18:36:51 2015 +0100
gdb.threads/manythreads.exp: can't read "test": no such variable
If interrupt_and_wait manages to trigger the FAIL path, we get:
ERROR OCCURED: can't read "test": no such variable
gdb/testsuite/ChangeLog:
2015-04-01 Pedro Alves <palves@redhat.com>
* gdb.threads/manythreads.exp (interrupt_and_wait): Pass $message
to fail instead of non-existent $test.
Diff:
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.threads/manythreads.exp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9fb8307..dfce0c0 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2015-04-01 Pedro Alves <palves@redhat.com>
+ * gdb.threads/manythreads.exp (interrupt_and_wait): Pass $message
+ to fail instead of non-existent $test.
+
+2015-04-01 Pedro Alves <palves@redhat.com>
+
* lib/gdb.exp (gdb_spawn_with_cmdline_opts): Append space to
GDBFLAGS if not empty.
diff --git a/gdb/testsuite/gdb.threads/manythreads.exp b/gdb/testsuite/gdb.threads/manythreads.exp
index b031f68..2a55f86 100644
--- a/gdb/testsuite/gdb.threads/manythreads.exp
+++ b/gdb/testsuite/gdb.threads/manythreads.exp
@@ -95,7 +95,7 @@ proc interrupt_and_wait { message } {
# foo () at foo.c:31
# 31 bar ();
#
- fail $test
+ fail $message
}
}
}