diff options
| author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2022-06-09 17:59:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-09 17:59:41 -0400 |
| commit | e69e47f8d62456f85f70d52f736a23eab504f8b4 (patch) | |
| tree | 5f7e19f07c69bed95c1fc7ce78c2a7916ae53fca /spec/ruby/shared/string | |
| parent | c2468fd88b977b1c0015fe7f49a822df1d07ea6f (diff) | |
Fix exit locations test (#5995)
I originally added the check for
RubyVM::YJIT.trace_exit_locations_enabled? to fix errors when these
tests run without the stats feature enabled. However I forgot that this
will never be true when this test is booting, so nothing was running
when the stats feature is turned on.
Instead I've decided to make a new hash in the dump file and check if
exit locations are enabled there. If they aren't enabled we return early
to avoid checking for keys that won't exit in the dumped exit locations.
I chose to add this additional enabled check because empty exit
locations might not indicate that stats isn't enabled, it could mean the
feature is entirely broken. I do want these tests to fail if stats are
on and nothing was collected.
Followup to #5970
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'spec/ruby/shared/string')
0 files changed, 0 insertions, 0 deletions
