test/bin/runtests in ruby-jss-3.0.0 vs test/bin/runtests in ruby-jss-3.1.0b1
- old
+ new
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
-### Copyright 2022 Pixar
+### Copyright 2023 Pixar
###
### Licensed under the Apache License, Version 2.0 (the "Apache License")
### with the following modification; you may not use this file except in
### compliance with the Apache License and the following modification to it:
@@ -41,19 +41,19 @@
$save_trace = false
# the file to hold the traces
$trace_out = open('/tmp/ruby-jss-tests-trace.txt', 'w')
-# the max call-stack depth - adjust this to help catch and
+# the max call-stack depth - adjust this to help catch and
# debug SystemStackError exceptions
$trace_max_call_stack_depth = 1000
# the tracing proc
set_trace_func proc { |event, file, line, id, _binding, classname|
if $do_tracing
begin
if event == 'call'
- $trace_out.puts "#{file}:#{line} #{classname}##{id}" if $save_trace
+ $trace_out.puts "#{file}:#{line} #{classname}##{id}" if $save_trace
raise 'MaxCallStackReached' if caller_locations.length > $trace_max_call_stack_depth
end
rescue => e
warn "ERROR: #{e.class}: #{e}"
e.backtrace.each { |l| warn "..#{l}" }