]> granicus.if.org Git - python/commitdiff
Increase the small thread stack size to get the test
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Tue, 13 Jun 2006 19:02:35 +0000 (19:02 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Tue, 13 Jun 2006 19:02:35 +0000 (19:02 +0000)
to pass reliably on the one buildbot that insists on
more than 32kB of thread stack.

Lib/test/output/test_thread
Lib/test/test_thread.py
Lib/test/test_threading.py

index d8174ab0624cfd1fea78fc5f579ac39ace1ce0f2..68c6a92dabd8ede0a4d968503d81cc7f6d71d8b3 100644 (file)
@@ -7,10 +7,10 @@ all tasks done
 
 *** Changing thread stack size ***
 caught expected ValueError setting stack_size(4096)
-successfully set stack_size(32768)
+successfully set stack_size(262144)
 successfully set stack_size(1048576)
 successfully set stack_size(0)
-trying stack_size = 32768
+trying stack_size = 262144
 waiting for all tasks to complete
 all tasks done
 trying stack_size = 1048576
index 883ca6cc75cac3c66c81e98f6d4d7201fb5f586f..c4c21fed00f312e3149dde069dafda62e15ad1a4 100644 (file)
@@ -140,13 +140,13 @@ if os_name in ("nt", "os2", "posix"):
     if tss_supported:
         failed = lambda s, e: s != e
         fail_msg = "stack_size(%d) failed - should succeed"
-        for tss in (32768, 0x100000, 0):
+        for tss in (262144, 0x100000, 0):
             thread.stack_size(tss)
             if failed(thread.stack_size(), tss):
                 raise ValueError, fail_msg % tss
             print 'successfully set stack_size(%d)' % tss
 
-        for tss in (32768, 0x100000):
+        for tss in (262144, 0x100000):
             print 'trying stack_size = %d' % tss
             next_ident = 0
             for i in range(numtasks):
index 02f338ac6c0170a10b2e733ff477469dd8c19285..ac4a010bc0cd88f2f6538ff969b6e9bd45af5437 100644 (file)
@@ -85,11 +85,11 @@ class ThreadTests(unittest.TestCase):
             print 'all tasks done'
         self.assertEqual(numrunning.get(), 0)
 
-    # run with a minimum thread stack size (32kB)
+    # run with a small(ish) thread stack size (256kB)
     def test_various_ops_small_stack(self):
         if verbose:
-            print 'with 32kB thread stack size...'
-        threading.stack_size(0x8000)
+            print 'with 256kB thread stack size...'
+        threading.stack_size(262144)
         self.test_various_ops()
         threading.stack_size(0)