Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mu-impl-fast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mu
mu-impl-fast
Commits
71b6c563
Commit
71b6c563
authored
Mar 15, 2017
by
qinsoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wip] one more separate test
parent
ac887af7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
tests/test_jit/test_rpython_list.py
tests/test_jit/test_rpython_list.py
+8
-7
No files found.
tests/test_jit/test_rpython_list.py
View file @
71b6c563
...
...
@@ -33,17 +33,18 @@ def test_rpython_list_new_5():
@
may_spawn_proc
def
test_rpython_list_append
():
def
main
(
argv
):
def
list_append
(
n
):
a
=
[]
for
i
in
range
(
0
,
10
):
for
i
in
range
(
0
,
n
):
a
.
append
(
i
)
return
len
(
a
)
c_exit
(
rffi
.
cast
(
rffi
.
INT
,
len
(
a
)))
return
0
res
=
run_boot_image
(
main
,
'/tmp/test_rpython_list_append'
)
fn
,
(
db
,
bdlgen
)
=
fncptr_from_rpy_func
(
list_append
,
[
rffi
.
LONGLONG
],
rffi
.
LONGLONG
)
bdlgen
.
mu
.
current_thread_as_mu_thread
(
rmu
.
null
(
rmu
.
MuCPtr
))
assert
res
.
returncode
==
10
,
'returncode = %d
\n
%s'
%
(
res
.
returncode
,
res
.
err
)
assert
fn
(
5
)
==
5
assert
fn
(
10
)
==
10
assert
fn
(
100
)
==
100
@
may_spawn_proc
def
test_rpython_list_iter
():
...
...
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