PR remote/19496, interrupted syscall in forking-threads-plus-bkpt
[binutils-gdb.git] / gdb / testsuite / gdb.threads / no-unwaited-for-left.exp
index 90ee5265fa1d7594b60d7f82cc4b9ea1b9832a77..d372f4bb21990ace0adc0cd014167986d15207a9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007-2013 Free Software Foundation, Inc.
+# Copyright (C) 2007-2016 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
@@ -65,3 +65,7 @@ gdb_test "continue" \
 gdb_test "info threads" \
         "\r\n\[ \t\]*Id\[ \t\]+Target\[ \t\]+Id\[ \t\]+Frame\[ \t\]*\r\n *3 *Thread \[^\r\n\]* \[^\r\n\]*.*The current thread <Thread ID 1> has terminated.*" \
         "only thread 3 left, main thread terminated"
+
+# Make sure thread apply all works when we have exited threads in the
+# list.
+gdb_test "thread apply all print 999" " = 999" "thread apply all with exited thread"