summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-02 22:42:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-02 23:11:42 +0900
commitde8b8b609a387a8732bf1f86fb1fc3f0ba22cbd8 (patch)
treef53610f148699952e46852e81332732cec7b3bc6 /spec/ruby/core/kernel
parenta2be428c5fec31b8adbd5ac087e7637ddf7e54d0 (diff)
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".
Diffstat (limited to 'spec/ruby/core/kernel')
-rw-r--r--spec/ruby/core/kernel/system_spec.rb2
1 files changed, 1 insertions, 1 deletions
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