This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix gdb.python/py-infthread.exp test message typo
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 6 Jan 2016 11:36:03 -0000
- Subject: [binutils-gdb] Fix gdb.python/py-infthread.exp test message typo
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=79bc59cb349fdbb8d3fa81804eb121af3c340c22
commit 79bc59cb349fdbb8d3fa81804eb121af3c340c22
Author: Pedro Alves <palves@redhat.com>
Date: Wed Jan 6 11:31:52 2016 +0000
Fix gdb.python/py-infthread.exp test message typo
gdb/testsuite/ChangeLog:
2016-01-06 Pedro Alves <palves@redhat.com>
* gdb.python/py-infthread.exp: Fix typo. Expect t0.num to be 1.
Diff:
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.python/py-infthread.exp | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 45a6c6a..959b85b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2016-01-06 Pedro Alves <palves@redhat.com>
+
+ * gdb.python/py-infthread.exp: Fix typo. Expect t0.num to be 1.
+
2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
* gdb.btrace/dlopen.exp: New.
diff --git a/gdb/testsuite/gdb.python/py-infthread.exp b/gdb/testsuite/gdb.python/py-infthread.exp
index 91cc4c2..6e02d02 100644
--- a/gdb/testsuite/gdb.python/py-infthread.exp
+++ b/gdb/testsuite/gdb.python/py-infthread.exp
@@ -41,7 +41,7 @@ if ![runto_main] then {
gdb_py_test_silent_cmd "python t0 = gdb.selected_thread ()" "test gdb.selected_thread" 1
gdb_test "python print (t0)" "\\<gdb.InferiorThread object at 0x\[\[:xdigit:\]\]+>" "verify InferiorThread object"
-gdb_test "python print ('result = %s' % t0.num)" " = \[0-9\]+" "test Inferior.num"
+gdb_test "python print ('result = %s' % t0.num)" " = 1" "test InferiorThread.num"
gdb_test "python print ('result = %s' % str (t0.ptid))" " = \\(\[0-9\]+, \[0-9\]+, \[0-9\]+\\)" "test InferiorThread.ptid"
gdb_py_test_silent_cmd "python name = gdb.selected_thread().name" \