aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-15 14:04:29 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-15 14:04:29 +0000
commit2d62b9f2c5cc96e22d528fbbc1730ceaee3acd83 (patch)
tree1e79a12ea8299120af66813f528fffd7b656d612 /spec
parent92546c92757c925bca7e5a6cda69d01333cf0e0a (diff)
downloadruby-2d62b9f2c5cc96e22d528fbbc1730ceaee3acd83.tar.gz
Clear `DESTDIR` when running make
* spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): `DESTDIR` is the drive letter of the ruby installed path as default on mswin, but not builddir of the ruby. this causes spec errors if the drive letter is different in the installed path and builddir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r--spec/rubyspec/optional/capi/spec_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/rubyspec/optional/capi/spec_helper.rb b/spec/rubyspec/optional/capi/spec_helper.rb
index 71b765de07..c250253919 100644
--- a/spec/rubyspec/optional/capi/spec_helper.rb
+++ b/spec/rubyspec/optional/capi/spec_helper.rb
@@ -59,7 +59,7 @@ def compile_extension(name)
ENV.delete "MAKEFLAGS" # Fix make warning when invoked with -j in MRI
# Do not capture stderr as we want to show compiler warnings
- output = `#{make} V=1`
+ output = `#{make} V=1 DESTDIR=`
raise "#{make} failed:\n#{output}" unless $?.success?
$stderr.puts output if debug