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
28b7d94e
Commit
28b7d94e
authored
Mar 23, 2017
by
qinsoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wip] two more tests passed (other two broke, fixing them)
parent
8f68f667
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
src/runtime/mod.rs
src/runtime/mod.rs
+2
-2
tests/test_jit/test_rpython.py
tests/test_jit/test_rpython.py
+2
-4
No files found.
src/runtime/mod.rs
View file @
28b7d94e
...
...
@@ -43,8 +43,8 @@ pub fn resolve_symbol(symbol: String) -> Address {
let
error
=
unsafe
{
dlerror
()};
if
!
error
.is_null
()
{
let
cstr
=
unsafe
{
CStr
::
from_ptr
(
error
)};
println
!
(
"cannot find symbol: {}"
,
symbol
);
println
!
(
"{}"
,
cstr
.to_str
()
.unwrap
());
error
!
(
"cannot find symbol: {}"
,
symbol
);
error
!
(
"{}"
,
cstr
.to_str
()
.unwrap
());
panic!
(
"failed to resolve symbol"
);
}
...
...
tests/test_jit/test_rpython.py
View file @
28b7d94e
...
...
@@ -1033,7 +1033,7 @@ def test_make_boot_image_simple():
c_printf
(
argv
[
i
])
c_putchar
(
'
\n
'
)
c_exit
(
rffi
.
cast
(
rffi
.
INT
,
0
))
return
0
return
0
res
=
run_boot_image
(
pypy_mu_entry
,
'/tmp/test_make_boot_image_mu'
,
True
,
[
'abc'
,
'123'
])
exe
=
'/tmp/test_make_boot_image_mu'
...
...
@@ -1041,7 +1041,7 @@ def test_make_boot_image_simple():
assert
res
.
returncode
==
0
,
res
.
err
assert
res
.
out
==
'%s
\n
abc
\n
123
\n
'
%
exe
@
pytest
.
mark
.
xfail
(
reason
=
"
debuggin
g on this"
)
@
pytest
.
mark
.
xfail
(
reason
=
"
going to debug
g on this"
)
@
may_spawn_proc
def
test_rpytarget_print_argv
():
def
main
(
argv
):
...
...
@@ -1054,7 +1054,6 @@ def test_rpytarget_print_argv():
assert
res
.
returncode
==
0
,
res
.
err
assert
res
.
out
==
'[%s, abc, 123]
\n
'
%
exe
@
pytest
.
mark
.
xfail
(
reason
=
"debugging on this"
)
@
may_spawn_proc
def
test_rpython_helloworld
():
def
main
(
argv
):
...
...
@@ -1066,7 +1065,6 @@ def test_rpython_helloworld():
assert
res
.
returncode
==
0
,
res
.
err
assert
res
.
out
==
'hello world
\n
'
@
pytest
.
mark
.
xfail
(
reason
=
"new test"
)
@
may_spawn_proc
def
test_rpython_print_number
():
...
...
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