diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2014-08-27 22:57:38 +0530 |
---|---|---|
committer | kaustubh-d <kaustubh@clogeny.com> | 2014-08-27 22:57:38 +0530 |
commit | da8436d910fda2ea83cc57dfb602cb1180bb1a0d (patch) | |
tree | 4c2474b68d2a7e8559c6a10283a6fd4794942423 | |
parent | 1a1154e864c6b3e230ae9380c7178bf36a6958ca (diff) | |
download | mixlib-shellout-da8436d910fda2ea83cc57dfb602cb1180bb1a0d.tar.gz |
raise Errno::ESRCH in spec for aix
-rw-r--r-- | spec/mixlib/shellout_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index 3a86c20..30c473d 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -1076,7 +1076,7 @@ describe Mixlib::ShellOut do kill_return_val = Process.kill(:INT, child_pgid) # should raise ESRCH # AIX - kill returns code > 0 for error, where as other platforms return -1. Ruby code signal.c treats < 0 as error and raises exception and hence fails on AIX. So we check the return code for assertions since ruby wont raise an error here. - raise "ESRCH error in AIX" if kill_return_val != 0 + raise Errno::ESRCH if kill_return_val != 0 # Debug the failure: puts "child pgid=#{child_pgid.inspect}" |