diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-10-06 21:22:52 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-10-07 20:35:34 -0400 |
| commit | 68e03213271f44ae63ad4a4e1ebe3ed59d589a9c (patch) | |
| tree | 11353704b541239b573b359995eb66de101642e8 /tool/lib | |
| parent | 337189f4ba4ac665fec6fb9a5ffc9a510697c38a (diff) | |
Always load -test-/asan in tests
-test-/asan should always be available.
Diffstat (limited to 'tool/lib')
| -rw-r--r-- | tool/lib/core_assertions.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index 934ab08037..cc4eb327d4 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -74,10 +74,7 @@ module Test module CoreAssertions require_relative 'envutil' require 'pp' - begin - require '-test-/asan' - rescue LoadError - end + require '-test-/asan' nil.pretty_inspect @@ -162,7 +159,7 @@ module Test pend 'assert_no_memory_leak may consider MJIT memory usage as leak' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # ASAN has the same problem - its shadow memory greatly increases memory usage # (plus asan has better ways to detect memory leaks than this assertion) - pend 'assert_no_memory_leak may consider ASAN memory usage as leak' if defined?(Test::ASAN) && Test::ASAN.enabled? + pend 'assert_no_memory_leak may consider ASAN memory usage as leak' if Test::ASAN.enabled? require_relative 'memory_status' raise Test::Unit::PendedError, "unsupported platform" unless defined?(Memory::Status) |
