[前][次][番号順一覧][スレッド一覧]

ruby-changes:61715

From: David <ko1@a...>
Date: Mon, 15 Jun 2020 12:38:54 +0900 (JST)
Subject: [ruby-changes:61715] 094fb6ae0d (master): Accommodate process title spec to ruby-core setup

https://git.ruby-lang.org/ruby.git/commit/?id=094fb6ae0d

From 094fb6ae0d1df90751a3d0a5c90f97cd96550f16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
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.

diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb
index 965d715..301ef61 100644
--- a/spec/bundler/commands/exec_spec.rb
+++ b/spec/bundler/commands/exec_spec.rb
@@ -67,17 +67,17 @@ RSpec.describe "bundle exec" do https://github.com/ruby/ruby/blob/trunk/spec/bundler/commands/exec_spec.rb#L67
     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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]