# HG changeset patch # User hodgestar # Date 1253919658 0 # Node ID 4928dfbd8e79a5fdcc09a154652f2e3ec97145c2 # Parent 2145a12b3b7ff4bd36441eda1c30d31b03ddb6e4 0.6dev: Merging [776] from trunk (a tweak to the queue threading test). diff --git a/bitten/tests/queue.py b/bitten/tests/queue.py --- a/bitten/tests/queue.py +++ b/bitten/tests/queue.py @@ -291,7 +291,9 @@ thread1 = threading.Thread(target=build_populator) thread2 = threading.Thread(target=build_populator) - thread1.start(); thread2.start() + # tiny sleep is to avoid odd segementation faults + # (on Linux) and bus errors (on Mac OS X) + thread1.start(); time.sleep(0.01); thread2.start() thread1.join(); thread2.join() # check builds got added