зеркало из https://github.com/github/ruby.git
mjit_worker.c: clean up all unnecessary files on mswin
test_jit.rb: passed all MJIT tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ceab2821a0
Коммит
50f2520b1f
|
@ -756,8 +756,16 @@ compile_c_to_so(const char *c_file, const char *so_file)
|
|||
free(args);
|
||||
|
||||
if (exit_code == 0) {
|
||||
/* remove never-used .obj file. XXX: Is there any way not to generate this? */
|
||||
if (!mjit_opts.save_temps) remove_file(obj_file);
|
||||
/* remove never-used files (.obj, .lib, .exp, .pdb). XXX: Is there any way not to generate this? */
|
||||
if (!mjit_opts.save_temps) {
|
||||
char *before_dot;
|
||||
remove_file(obj_file);
|
||||
|
||||
before_dot = obj_file + strlen(obj_file) - rb_strlen_lit(".obj");
|
||||
append_lit(before_dot, ".lib"); remove_file(obj_file);
|
||||
append_lit(before_dot, ".exp"); remove_file(obj_file);
|
||||
append_lit(before_dot, ".pdb"); remove_file(obj_file);
|
||||
}
|
||||
}
|
||||
else {
|
||||
verbose(2, "compile_c_to_so: compile error: %d", exit_code);
|
||||
|
|
|
@ -552,7 +552,6 @@ class TestJIT < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_unload_units
|
||||
skip_on_mswin
|
||||
Dir.mktmpdir("jit_test_unload_units_") do |dir|
|
||||
# MIN_CACHE_SIZE is 10
|
||||
out, err = eval_with_jit({"TMPDIR"=>dir}, "#{<<~"begin;"}\n#{<<~'end;'}", verbose: 1, min_calls: 1, max_cache: 10)
|
||||
|
@ -717,7 +716,6 @@ class TestJIT < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_clean_so
|
||||
skip_on_mswin
|
||||
Dir.mktmpdir("jit_test_clean_so_") do |dir|
|
||||
code = "x = 0; 10.times {|i|x+=i}"
|
||||
eval_with_jit({"TMPDIR"=>dir}, code)
|
||||
|
@ -797,13 +795,6 @@ class TestJIT < Test::Unit::TestCase
|
|||
|
||||
private
|
||||
|
||||
# Some tests are stil failing on VC++.
|
||||
def skip_on_mswin
|
||||
if RUBY_PLATFORM.match?(/mswin/)
|
||||
skip 'This test does not succeed on mswin yet.'
|
||||
end
|
||||
end
|
||||
|
||||
def skip_on_mingw
|
||||
if RUBY_PLATFORM.match?(/mingw/)
|
||||
skip 'This test does not succeed on mingw yet.'
|
||||
|
|
Загрузка…
Ссылка в новой задаче