From 094fb6ae0d1df90751a3d0a5c90f97cd96550f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sun, 14 Jun 2020 21:03:42 +0200 Subject: 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. --- spec/bundler/commands/exec_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/bundler/commands/exec_spec.rb') 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 -- cgit v1.2.3