squash: Use TracePoint

Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2252100
and https://bugs.ruby-lang.org/issues/14582
This commit is contained in:
Lukáš Zachar 2024-07-16 17:16:08 +02:00
commit 3dee01db19

View file

@ -87,7 +87,7 @@ rlJournalStart
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 '\"abc\".slice!(\"c\")'" 0 "Running ruby interpreter: String test"
rlRun "$RUBY $RUBY_OPTS -e '5.times { printf \"Ruby!\n\" }'" 0 "Running ruby interpreter: Cycle and print test"
rlRun "$RUBY $RUBY_OPTS -e 'TracePoint.new{}.enable; 5.times { printf \"Ruby!\n\" }'" 0 "Running ruby interpreter: Cycle and print test"
# wait for all output
rlRun "sleep 10" 0 "Waiting \"10\" seconds"