Xerxes Battiwalla
2009-Sep-29 01:23 UTC
[Ironruby-core] IR -e not returning error codes properly
This problem manifests itself when running rspec tests under IronRuby (through our Rakefile), and I think i''ve found a simple reproduction of the issue using the following command-line sequence. MRI does this: --------------------- D:\>ruby -e ''exit(777)'' D:\>echo %errorlevel% 777 IR does this: --------------------- D:\>ir -e ''exit(666)'' D:\>echo %errorlevel% 0 I''ve tried this against the current HEAD (03054a5be81), and it fails. You guys happy for me to log this in CodePlex? Is there any possible work-around in the meantime, as our RSpec rake tasks are passing when they should fail. Cheers, Xerx.
Jim Deville
2009-Sep-29 04:26 UTC
[Ironruby-core] IR -e not returning error codes properly
Not repro''ing here. Can you recompile from VS just to check? If it still happens, contact me offlist and I''ll get those binaries and see if I can repro with your bits. JD -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Xerxes Battiwalla Sent: Monday, September 28, 2009 6:24 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IR -e not returning error codes properly This problem manifests itself when running rspec tests under IronRuby (through our Rakefile), and I think i''ve found a simple reproduction of the issue using the following command-line sequence. MRI does this: --------------------- D:\>ruby -e ''exit(777)'' D:\>echo %errorlevel% 777 IR does this: --------------------- D:\>ir -e ''exit(666)'' D:\>echo %errorlevel% 0 I''ve tried this against the current HEAD (03054a5be81), and it fails. You guys happy for me to log this in CodePlex? Is there any possible work-around in the meantime, as our RSpec rake tasks are passing when they should fail. Cheers, Xerx. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core