Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
0ebac028
Commit
0ebac028
authored
Dec 29, 2015
by
Kouhei Sutou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip backtrace related tests when backtrace isn't available
parent
a561bdb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
test/t/exception.rb
test/t/exception.rb
+12
-0
No files found.
test/t/exception.rb
View file @
0ebac028
...
...
@@ -373,7 +373,17 @@ assert('Raise in ensure') do
end
end
def
backtrace_avaialble?
begin
raise
"XXX"
rescue
=>
exception
not
exception
.
backtrace
.
empty?
end
end
assert
(
'GC in rescue'
)
do
skip
"backtrace isn't avaialble"
unless
backtrace_avaialble?
line
=
nil
begin
[
1
].
each
do
...
...
@@ -391,6 +401,8 @@ assert('GC in rescue') do
end
assert
(
'Method call in rescue'
)
do
skip
"backtrace isn't avaialble"
unless
backtrace_avaialble?
line
=
nil
begin
[
1
].
each
do
...
...
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