diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-25 11:31:16 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-25 11:31:16 -0700 |
commit | af9fa16c96284f61b595a8f994926533fd51fd3b (patch) | |
tree | 3f42382cbe9fb724891b152424213c72dbd4ee06 /test/mkmf | |
parent | 52560a92631e7b327365383e7ce83c80fcfafc05 (diff) |
Make sure super is called and fix teardown
Diffstat (limited to 'test/mkmf')
-rw-r--r-- | test/mkmf/base.rb | 1 | ||||
-rw-r--r-- | test/mkmf/test_constant.rb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb index e097c396d6..ec42bca100 100644 --- a/test/mkmf/base.rb +++ b/test/mkmf/base.rb @@ -106,6 +106,7 @@ class TestMkmf < Test::Unit::TestCase end def teardown + return if @omitted rbconfig0 = @rbconfig mkconfig0 = @mkconfig RbConfig.module_eval { diff --git a/test/mkmf/test_constant.rb b/test/mkmf/test_constant.rb index e12250d0a2..f22b82ff95 100644 --- a/test/mkmf/test_constant.rb +++ b/test/mkmf/test_constant.rb @@ -4,8 +4,10 @@ require_relative 'base' class TestMkmfTryConstant < TestMkmf def setup if ENV.key?('APPVEYOR') + @omitted = true omit 'This test fails too often on AppVeyor' end + super end def test_simple |