summaryrefslogtreecommitdiff
path: root/spec/bundler/commands/exec_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-14 21:03:42 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-15 12:38:39 +0900
commit094fb6ae0d1df90751a3d0a5c90f97cd96550f16 (patch)
treeaa28663730eeb0d5f7a94bbeb069f9baf5c9b689 /spec/bundler/commands/exec_spec.rb
parent117b504b98add70984313d96e9d4b67d74b10c8b (diff)
Accommodate process title spec to ruby-core setup
I'm guessing the commands under ruby-core setup are very long, so the title gets truncated. Use a shorter title, since the test doesn't really care.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3225
Diffstat (limited to 'spec/bundler/commands/exec_spec.rb')
-rw-r--r--spec/bundler/commands/exec_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb
index 965d715e6b..301ef6131d 100644
--- a/spec/bundler/commands/exec_spec.rb
+++ b/spec/bundler/commands/exec_spec.rb
@@ -67,17 +67,17 @@ RSpec.describe "bundle exec" do
expect(out).to eq(Gem::VERSION)
end
- it "respects custom process title when loading through ruby", :ruby_repo do
+ it "respects custom process title when loading through ruby" do
skip "https://github.com/rubygems/bundler/issues/6898" if Gem.win_platform?
script_that_changes_its_own_title_and_checks_if_picked_up_by_ps_unix_utility = <<~'RUBY'
- Process.setproctitle("1-2-3-4-5-6-7-8-9-10-11-12-13-14-15")
+ Process.setproctitle("1-2-3-4-5-6-7")
puts `ps -ocommand= -p#{$$}`
RUBY
create_file "Gemfile"
create_file "a.rb", script_that_changes_its_own_title_and_checks_if_picked_up_by_ps_unix_utility
bundle "exec ruby a.rb"
- expect(out).to eq("1-2-3-4-5-6-7-8-9-10-11-12-13-14-15")
+ expect(out).to eq("1-2-3-4-5-6-7")
end
it "accepts --verbose" do