From 902b404c3fa7ff33bcd9337e71f7838dd28836b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zachar?= Date: Wed, 22 Jan 2025 17:55:41 +0100 Subject: [PATCH] Use TracePoint.new{} in Hash.new() example Otherwise Ruby 3.4 doesn't print expected `Hash::initialize` --- systemtap-static-probes-in-ruby/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemtap-static-probes-in-ruby/runtest.sh b/systemtap-static-probes-in-ruby/runtest.sh index 7743895..d44d2b0 100755 --- a/systemtap-static-probes-in-ruby/runtest.sh +++ b/systemtap-static-probes-in-ruby/runtest.sh @@ -91,7 +91,7 @@ rlJournalStart rlRun "$RUBY $RUBY_OPTS -e '1.0 + 9.0'" 0 "Running ruby interpreter: Float test" rlRun "$RUBY $RUBY_OPTS -e '[1, 2, 3].push(4)'" 0 "Running ruby interpreter: Array test" rlRun "$RUBY $RUBY_OPTS -e '(1..10).step(1)'" 0 "Running ruby interpreter: Range test" - rlRun "$RUBY $RUBY_OPTS -e 'Hash.new()'" 0 "Running ruby interpreter: Hash test" + rlRun "$RUBY $RUBY_OPTS -e 'TracePoint.new{}.enable; Hash.new()'" 0 "Running ruby interpreter: Hash test" rlRun "$RUBY $RUBY_OPTS -e '\"abc\".slice!(\"c\")'" 0 "Running ruby interpreter: String test" rlRun "$RUBY $RUBY_OPTS -e 'TracePoint.new{}.enable; 5.times { printf \"Ruby!\n\" }'" 0 "Running ruby interpreter: Cycle and print test"