test runner: fix pending threads handling at shutdown
authorStefan Behnel <scoder@users.berlios.de>
Sun, 21 Nov 2010 10:37:17 +0000 (11:37 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 21 Nov 2010 10:37:17 +0000 (11:37 +0100)
runtests.py

index a0381c52fd633acebcc093298a16519a97a1f1dd..16d0adb46d5e3168d96d5491593f94ef3f243222 100644 (file)
@@ -863,6 +863,9 @@ def check_thread_termination(ignore_seen=True):
             continue
         t.join(timeout=2)
         if t.isAlive():
+            if not ignore_seen:
+                blocking_threads.append(t)
+                continue
             for seen in threads_seen:
                 if t is seen:
                     break