diff options
author | Yao Qi <yao@codesourcery.com> | 2012-02-17 13:22:58 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-02-17 13:22:58 +0000 |
commit | 9e507076870544c11dc3711e836d6803f30e7658 (patch) | |
tree | 948e66308e286f012465fa1f4d1d6c7574773f8b | |
parent | 6639d37af3d5c9e6853f4e86115a701920550c6d (diff) | |
download | gdb-9e507076870544c11dc3711e836d6803f30e7658.zip gdb-9e507076870544c11dc3711e836d6803f30e7658.tar.gz gdb-9e507076870544c11dc3711e836d6803f30e7658.tar.bz2 |
gdb/testsuite/
* gdb.trace/strace.exp (strace_info_marker): Test `info threads'.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.trace/strace.exp | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ff0332d..0de5fe4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-02-17 Yao Qi <yao@codesourcery.com> + + * gdb.trace/strace.exp (strace_info_marker): Test `info threads'. + 2012-02-16 Tom Tromey <tromey@redhat.com> * gdb.base/inferior-died.c: Don't include stdio.h. diff --git a/gdb/testsuite/gdb.trace/strace.exp b/gdb/testsuite/gdb.trace/strace.exp index 4d6ea10..c9947dc 100644 --- a/gdb/testsuite/gdb.trace/strace.exp +++ b/gdb/testsuite/gdb.trace/strace.exp @@ -55,6 +55,7 @@ gdb_load_shlibs $libipa proc strace_info_marker { } { global executable global pf_prefix + global gdb_prompt set old_pf_prefix $pf_prefix lappend pf_prefix "info_marker" @@ -71,6 +72,13 @@ proc strace_info_marker { } { gdb_test "info static-tracepoint-markers" \ ".*ust/bar\[\t \]+n\[\t \]+.*ust/bar2\[\t \]+n\[\t \]+.*" + # List all the thread. It is expected to get three threads without + # any errors. + gdb_test_multiple "info threads 3 2 1" "info threads" { + -re "3\[ \t\]+Thread .*2\[ \t\]+Thread .*1\[ \t\]+Thread .*${gdb_prompt} $" { + pass "info threads" + } + } set pf_prefix $old_pf_prefix } |