summaryrefslogtreecommitdiff
path: root/test/mkmf/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/mkmf/base.rb')
-rw-r--r--test/mkmf/base.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb
index e097c396d6..7df07c16a6 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 {
@@ -146,7 +147,10 @@ class TestMkmf < Test::Unit::TestCase
include Base
- def assert_separately(args, src, *rest, **options)
- super(args + ["-r#{__FILE__}"], "extend TestMkmf::Base; setup\nEND{teardown}\n#{src}", *rest, **options)
+ def assert_separately(args, extra_args, src, *rest, **options)
+ super(args + ["-r#{__FILE__}"] + %w[- --] + extra_args,
+ "extend TestMkmf::Base; setup\nEND{teardown}\n#{src}",
+ *rest,
+ **options)
end
end