mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ca512bdaa8
commit
9102ee7be2
4 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -27,6 +27,8 @@ class TestMkmf
|
|||
assert_include($defs, "-DNUM2TEST1T=NUM2#{u}#{type.upcase}")
|
||||
end
|
||||
end
|
||||
ensure
|
||||
File.unlink("confdefs.h")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,6 +22,8 @@ class TestMkmf
|
|||
assert_include($defs, "-DSIGNEDNESS_OF_TEST1_T=#{expect}")
|
||||
end
|
||||
end
|
||||
ensure
|
||||
File.unlink("confdefs.h")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue