Commit 526a0fc0 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Get test_wait3 and test_wait4 working

parent 450242da
# expected: fail
"""This test checks for correct wait3() behavior. """This test checks for correct wait3() behavior.
""" """
......
# expected: fail
"""This test checks for correct wait4() behavior. """This test checks for correct wait4() behavior.
""" """
......
...@@ -6109,6 +6109,8 @@ wait_helper(pid_t pid, int status, struct rusage *ru) ...@@ -6109,6 +6109,8 @@ wait_helper(pid_t pid, int status, struct rusage *ru)
Py_DECREF(m); Py_DECREF(m);
if (struct_rusage == NULL) if (struct_rusage == NULL)
return NULL; return NULL;
// Pyston addition:
PyGC_RegisterStaticConstant(struct_rusage);
} }
/* XXX(nnorwitz): Copied (w/mods) from resource.c, there should be only one. */ /* XXX(nnorwitz): Copied (w/mods) from resource.c, there should be only one. */
......
...@@ -220,6 +220,8 @@ void setupThread() { ...@@ -220,6 +220,8 @@ void setupThread() {
"start_new_thread", "start_new_thread",
new BoxedBuiltinFunctionOrMethod( new BoxedBuiltinFunctionOrMethod(
BoxedCode::create((void*)startNewThread, BOXED_INT, 3, false, false, "start_new_thread"), { NULL })); BoxedCode::create((void*)startNewThread, BOXED_INT, 3, false, false, "start_new_thread"), { NULL }));
thread_module->giveAttrBorrowed("start_new", thread_module->getattr(getStaticString("start_new_thread")));
thread_module->giveAttr("allocate_lock", new BoxedBuiltinFunctionOrMethod( thread_module->giveAttr("allocate_lock", new BoxedBuiltinFunctionOrMethod(
BoxedCode::create((void*)allocateLock, UNKNOWN, 0, "allocate_lock"))); BoxedCode::create((void*)allocateLock, UNKNOWN, 0, "allocate_lock")));
thread_module->giveAttr( thread_module->giveAttr(
......
...@@ -172,8 +172,6 @@ test_unicode argument passing issue? ...@@ -172,8 +172,6 @@ test_unicode argument passing issue?
test_userdict segfault: repr of recursive dict? test_userdict segfault: repr of recursive dict?
test_userlist slice(1L, 1L) test_userlist slice(1L, 1L)
test_userstring float(1L); hangs in test_replace test_userstring float(1L); hangs in test_replace
test_wait3 [unknown]
test_wait4 [unknown]
test_warnings [unknown] test_warnings [unknown]
test_weakref weird function-picking bug (something around float.__add__), plase also fix the weakref issue in test_abc test_weakref weird function-picking bug (something around float.__add__), plase also fix the weakref issue in test_abc
test_winreg [unknown] test_winreg [unknown]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment