diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-09-26 11:39:25 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-09-27 12:10:23 -0400 |
commit | 3cec94624b0a0b308df03f5dba22dd5eb2e4f515 (patch) | |
tree | 2841a7bed77f43fa424d36117176076254b22d0b | |
parent | 0517ca3aac2c834a07dff981a4888f631d6330c6 (diff) | |
download | ruby-3cec94624b0a0b308df03f5dba22dd5eb2e4f515.tar.gz |
Rename compiler test to iseq test
-rw-r--r-- | test/yarp/iseq_test.rb (renamed from test/yarp/compiler_test.rb) | 2 | ||||
-rwxr-xr-x | tool/sync_default_gems.rb | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/yarp/compiler_test.rb b/test/yarp/iseq_test.rb index 876e952640..f7998fe171 100644 --- a/test/yarp/compiler_test.rb +++ b/test/yarp/iseq_test.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module YARP - class CompilerTest < Test::Unit::TestCase + class ISeqTest < Test::Unit::TestCase def test_empty_program test_yarp_eval("") end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index d14adf0a91..c3d010f82a 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -398,14 +398,14 @@ module SyncDefaultGems cp_r("#{upstream}/spec", "spec/syntax_suggest") cp_r("#{upstream}/exe/syntax_suggest", "libexec/syntax_suggest") when "yarp" - # We don't want to remove yarp_init.c, so we temporarily move it - # out of the yarp dir, wipe the yarp dir, and then put it back + # We don't want to remove YARP-specific files that existing in ruby/ruby + # that do not exist in ruby/yarp, so we temporarily move them out of the + # yarp dir, wipe the yarp dir, and then put them back. mv("yarp/yarp_init.c", ".") mv("yarp/yarp_compiler.c", ".") - mv("test/yarp/compiler_test.rb", ".") + mv("test/yarp/iseq_test.rb", ".") rm_rf(%w[test/yarp yarp]) - # Run the YARP templating scripts cp_r("#{upstream}/ext/yarp", "yarp") cp_r("#{upstream}/lib/.", "lib") cp_r("#{upstream}/test/yarp", "test") @@ -422,7 +422,7 @@ module SyncDefaultGems rm("yarp/extconf.rb") mv("yarp_init.c", "yarp/") mv("yarp_compiler.c", "yarp/") - mv("compiler_test.rb", "test/yarp/") + mv("iseq_test.rb", "test/yarp/") else sync_lib gem, upstream end |