Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
526a0fc0
Commit
526a0fc0
authored
Sep 10, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get test_wait3 and test_wait4 working
parent
450242da
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
4 deletions
+4
-4
from_cpython/Lib/test/test_wait3.py
from_cpython/Lib/test/test_wait3.py
+0
-1
from_cpython/Lib/test/test_wait4.py
from_cpython/Lib/test/test_wait4.py
+0
-1
from_cpython/Modules/posixmodule.c
from_cpython/Modules/posixmodule.c
+2
-0
src/runtime/builtin_modules/thread.cpp
src/runtime/builtin_modules/thread.cpp
+2
-0
test/CPYTHON_TEST_NOTES.md
test/CPYTHON_TEST_NOTES.md
+0
-2
No files found.
from_cpython/Lib/test/test_wait3.py
View file @
526a0fc0
# expected: fail
"""This test checks for correct wait3() behavior.
"""This test checks for correct wait3() behavior.
"""
"""
...
...
from_cpython/Lib/test/test_wait4.py
View file @
526a0fc0
# expected: fail
"""This test checks for correct wait4() behavior.
"""This test checks for correct wait4() behavior.
"""
"""
...
...
from_cpython/Modules/posixmodule.c
View file @
526a0fc0
...
@@ -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. */
...
...
src/runtime/builtin_modules/thread.cpp
View file @
526a0fc0
...
@@ -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
(
...
...
test/CPYTHON_TEST_NOTES.md
View file @
526a0fc0
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment