summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-08-25 11:31:16 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-25 11:31:16 -0700
commitaf9fa16c96284f61b595a8f994926533fd51fd3b (patch)
tree3f42382cbe9fb724891b152424213c72dbd4ee06 /test/mkmf
parent52560a92631e7b327365383e7ce83c80fcfafc05 (diff)
Make sure super is called and fix teardown
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/base.rb1
-rw-r--r--test/mkmf/test_constant.rb2
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