From de8b8b609a387a8732bf1f86fb1fc3f0ba22cbd8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 2 May 2020 22:42:12 +0900 Subject: [PATCH] Command failed to run just fails The exact exit status value of command failed to run is not a spec, but a platform dependent implementation detail. Just it is not "success". --- spec/ruby/core/kernel/system_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ruby/core/kernel/system_spec.rb b/spec/ruby/core/kernel/system_spec.rb index 96c0496dd6..9196a9f9f1 100644 --- a/spec/ruby/core/kernel/system_spec.rb +++ b/spec/ruby/core/kernel/system_spec.rb @@ -40,7 +40,7 @@ describe :kernel_system, shared: true do $?.should be_an_instance_of Process::Status $?.pid.should be_kind_of(Integer) - $?.exitstatus.should == 127 + $?.should_not.success? end it "does not write to stderr when command execution fails" do