mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix threads resume test: do not suspend main thread until all threads are created
This commit is contained in:
@@ -4,6 +4,7 @@ lock = RLock()
|
||||
|
||||
|
||||
def foo():
|
||||
sleep(1)
|
||||
while True:
|
||||
lock.acquire()
|
||||
x = 12
|
||||
|
||||
@@ -975,8 +975,8 @@ public class PythonDebuggerTest extends PyEnvTestCase {
|
||||
runPythonTest(new PyDebuggerTask("/debug", "test_two_threads_resume.py") {
|
||||
@Override
|
||||
public void before() throws Exception {
|
||||
toggleBreakpoint(getFilePath(getScriptName()), 9);
|
||||
setBreakpointSuspendPolicy(getProject(), 9, SuspendPolicy.ALL);
|
||||
toggleBreakpoint(getFilePath(getScriptName()), 10);
|
||||
setBreakpointSuspendPolicy(getProject(), 10, SuspendPolicy.ALL);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user