summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-06-17 23:28:51 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-06-17 23:28:51 +0900
commite30ff63fd4eb24fd638259cb10638668f0f2ceeb (patch)
treed215397ffb7de21d66a9ded5edd3a008ae20f836 /insns.def
parentb1d74afd3a869c4dbdd5c2834d9b7b7ea6c4dad1 (diff)
test/rubygems/test_gem_package.rb: Skip a test when TMPDIR is too long
to suppress the following failure: https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20200617T130007Z.fail.html.gz https://rubyci.org/logs/rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/log/20200617T131443Z.fail.html.gz ``` 1) Failure: TestGemPackage#test_extract_symlink_parent_doesnt_delete_user_dir [/export/home/chkbuild/chkbuild-gcc/tmp/build/20200617T130007Z/ruby/test/rubygems/test_gem_package.rb:620]: --- expected +++ actual @@ -1 +1 @@ -"installing into parent path /export/home/chkbuild/chkbuild-gcc/tmp/build/20200617T130007Z/ruby/tmp/test_rubygems_15916/extract/user/dir of /export/home/chkbuild/chkbuild-gcc/tmp/build/20200617T130007Z/ruby/tmp/test_rubygems_15916/extract/subdir is not allowed" +"installing into parent path link/dir of /export/home/chkbuild/chkbuild-gcc/tmp/build/20200617T130007Z/ruby/tmp/test_rubygems_15916/extract/subdir is not allowed" ``` These CI environments use very long TMPDIR for some reason. The test case creates a directory in TMPDIR and attempts to add a symbolic link to the path into a tarball. However, tar format limits the maximum length up to 99, so the path is truncated. This truncation makes the path check of `Gem::Package#install_location` pass through, and then the check of `#mkdir_p_safe` raises an error. The error message is slightly different from the expected value, so the test fails. I'm unsure what to do, so I tentatively skip the test when TMPDIR is long. I'll create a ticket into rubygems bug tracker.
Diffstat (limited to 'insns.def')
0 files changed, 0 insertions, 0 deletions