summaryrefslogtreecommitdiff
path: root/test/mkmf
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-03 09:41:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-03 09:41:14 +0000
commit9102ee7be2586b5206a9ad40c1bb5f0624911931 (patch)
tree4909c647696e7506cee32234c861971dfe39b2ca /test/mkmf
parentca512bdaa878df34fd27b720998d40fbc68a5e0f (diff)
* test/mkmf: remove generated files and ensure nothing left.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/mkmf')
-rw-r--r--test/mkmf/base.rb2
-rw-r--r--test/mkmf/test_convertible.rb2
-rw-r--r--test/mkmf/test_signedness.rb2
-rw-r--r--test/mkmf/test_sizeof.rb2
4 files changed, 8 insertions, 0 deletions
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb
index 54f2e7a..9841aa3 100644
--- a/test/mkmf/base.rb
+++ b/test/mkmf/base.rb
@@ -107,8 +107,10 @@ class TestMkmf < Test::Unit::TestCase
}
Logging.quiet = @quiet
Logging.log_close
+ FileUtils.rm_f("mkmf.log")
Dir.chdir(@curdir)
FileUtils.rm_rf(@tmpdir)
+ assert_empty(Dir.glob("conftest*") - %w[. ..])
end
def mkmf(*args, &block)
diff --git a/test/mkmf/test_convertible.rb b/test/mkmf/test_convertible.rb
index 3ad36b3..eec2d12 100644
--- a/test/mkmf/test_convertible.rb
+++ b/test/mkmf/test_convertible.rb
@@ -27,6 +27,8 @@ class TestMkmf
assert_include($defs, "-DNUM2TEST1T=NUM2#{u}#{type.upcase}")
end
end
+ ensure
+ File.unlink("confdefs.h")
end
end
end
diff --git a/test/mkmf/test_signedness.rb b/test/mkmf/test_signedness.rb
index ad0495a..8d58073 100644
--- a/test/mkmf/test_signedness.rb
+++ b/test/mkmf/test_signedness.rb
@@ -22,6 +22,8 @@ class TestMkmf
assert_include($defs, "-DSIGNEDNESS_OF_TEST1_T=#{expect}")
end
end
+ ensure
+ File.unlink("confdefs.h")
end
end
end
diff --git a/test/mkmf/test_sizeof.rb b/test/mkmf/test_sizeof.rb
index 30f6fd5..c014422 100644
--- a/test/mkmf/test_sizeof.rb
+++ b/test/mkmf/test_sizeof.rb
@@ -40,6 +40,8 @@ class TestMkmf
f.puts "typedef struct {int x, y;} test1_t;"
}
assert_equal(2 * @sizeof_int, mkmf {check_sizeof("test1_t", "confdefs.h")}, MKMFLOG)
+ ensure
+ File.unlink("confdefs.h")
end
end
end