зеркало из https://github.com/github/ruby.git
* 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:
Родитель
ca512bdaa8
Коммит
9102ee7be2
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче