lib/ruby-vpi/boot/loader.rb in ruby-vpi-21.0.0 vs lib/ruby-vpi/boot/loader.rb in ruby-vpi-21.1.0
- old
+ new
@@ -139,21 +139,22 @@
# make VPI functions available globally
class Object
include VPI
end
- # load the user-defined test loader
- RubyVPI::Scheduler.start
+ RubyVPI::Scheduler.run do
+ # load the user-defined test loader
require ENV['RUBYVPI_TEST_LOADER']
- # simulate at_exit handler invocation
+ # simulate at_exit handler invocation
Kernel.__RubyVPI__simulate_exit
# restore original at_exit handler
module Kernel
alias at_exit __RubyVPI__orig_at_exit
undef __RubyVPI__simulate_exit
end
+ end
RubyVPI.detach
rescue Exception => e
# mimic how Ruby internally prints exceptions