⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (453 Bytes)
Bug #10959
» start.rb
Launches tests using rb_iseq_load wrapper -
alvoskov (Alexey Voskov)
, 03/10/2015 03:33 PM
require_relative
'iseqtest'
def
run_file
(
filename
)
# Compile instructions
data
=
RubyVM
::
InstructionSequence
.
compile_file
(
filename
)
str
=
Marshal
.
dump
(
data
.
to_a
)
# Execute instructions
run_iseq
(
data
.
to_a
)
end
[
'test1.rb'
,
'test2.rb'
,
'test3.rb'
].
each
do
|
filename
|
begin
run_file
(
filename
)
rescue
TypeError
puts
"
#{
filename
}
: EXCEPTION"
puts
$!
puts
"----------------------"
else
puts
"
#{
filename
}
: OK"
end
end
« Previous
1
2
3
…
6
Next »
(1-1/6)
Loading...