diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-10 11:14:55 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-03-11 04:44:44 +0000 |
commit | f7b215af0ed5148d1946f1e9d817a0875db02ec6 (patch) | |
tree | 7d6b218da531392baeae99aaf145e2e50be793db /test | |
parent | 9801ad47bd8dc73370c4c668ac716a6e31802637 (diff) | |
download | ruby-f7b215af0ed5148d1946f1e9d817a0875db02ec6.tar.gz |
[rubygems/rubygems] Added another case of extconf.rb
https://github.com/rubygems/rubygems/commit/3d0fa3dee8
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 38b0c0c8b4..375d51cce5 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -3674,9 +3674,18 @@ end FileUtils.mkdir_p File.join(@ext.gem_dir, "lib") # ext_spec used empty extconf.rb, so we need to create dummy extension for rake-compiler case. + # Ex. lib/gemname.so FileUtils.touch File.join(@ext.gem_dir, "lib", "#{@ext.name}.#{RbConfig::CONFIG['DLEXT']}") refute @ext.missing_extensions? + + # Try to another case of extconf.rb + # Ex. lib/gemname/parser.so + FileUtils.rm File.join(@ext.gem_dir, "lib", "#{@ext.name}.#{RbConfig::CONFIG['DLEXT']}") + FileUtils.mkdir_p File.join(@ext.gem_dir, "lib", @ext.name) + FileUtils.touch File.join(@ext.gem_dir, "lib", @ext.name, "parser.#{RbConfig::CONFIG['DLEXT']}") + + refute @ext.missing_extensions? end def test_find_all_by_full_name |