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
bd4a04ce
Commit
bd4a04ce
authored
Mar 03, 2015
by
Michael Arntzenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix resource_test to not exceed resource limit
parent
c53eec69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
test/tests/resource_test.py
test/tests/resource_test.py
+1
-1
tools/tester.py
tools/tester.py
+2
-0
No files found.
test/tests/resource_test.py
View file @
bd4a04ce
...
@@ -5,7 +5,7 @@ for k in sorted(dir(resource)):
...
@@ -5,7 +5,7 @@ for k in sorted(dir(resource)):
continue
continue
print
k
,
getattr
(
resource
,
k
)
print
k
,
getattr
(
resource
,
k
)
TIME_LIMIT
=
100
TIME_LIMIT
=
5
resource
.
setrlimit
(
resource
.
RLIMIT_CPU
,
(
TIME_LIMIT
+
1
,
TIME_LIMIT
+
1
))
resource
.
setrlimit
(
resource
.
RLIMIT_CPU
,
(
TIME_LIMIT
+
1
,
TIME_LIMIT
+
1
))
MAX_MEM_MB
=
100
MAX_MEM_MB
=
100
...
...
tools/tester.py
View file @
bd4a04ce
...
@@ -238,6 +238,8 @@ def run_test(fn, check_stats, run_memcheck):
...
@@ -238,6 +238,8 @@ def run_test(fn, check_stats, run_memcheck):
failed
.
append
(
fn
)
failed
.
append
(
fn
)
return
r
return
r
else
:
else
:
# show last line of stderr so we have some idea went wrong
print
"Last line of stderr: "
+
last_stderr_line
raise
Exception
(
msg
)
raise
Exception
(
msg
)
elif
out
!=
expected_out
:
elif
out
!=
expected_out
:
...
...
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