Index: gdb/testsuite/gdb.threads/threadapply.exp |
diff --git a/gdb/testsuite/gdb.threads/threadapply.exp b/gdb/testsuite/gdb.threads/threadapply.exp |
index 1ec1a3af2cda72302dfa1042fb451b4bd8e1a3c8..5e058985ae141ff085c24819fa61728fa45a1690 100644 |
--- a/gdb/testsuite/gdb.threads/threadapply.exp |
+++ b/gdb/testsuite/gdb.threads/threadapply.exp |
@@ -1,6 +1,6 @@ |
# This testcase is part of GDB, the GNU debugger. |
-# Copyright 2004, 2007-2012 Free Software Foundation, Inc. |
+# Copyright 2004-2013 Free Software Foundation, Inc. |
# This program is free software; you can redistribute it and/or modify |
# it under the terms of the GNU General Public License as published by |
@@ -63,3 +63,4 @@ gdb_test "step" "thread_function.*" "step to the thread_function" |
gdb_test "up" ".*in main.*" "go up in the stack frame" |
gdb_test "thread apply all print 1" "Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1.*Thread ..*\\\$\[0-9]+ = 1" "run a simple print command on all threads" |
gdb_test "down" "#0.*thread_function.*" "go down and check selected frame" |
+gdb_test "thread apply all detach" "Thread .*" |