at_exit: don't mask nonzero exit status due to $! #569

Merged
merged 1 commit into from Feb 10, 2012
Commits on Feb 3, 2012
  1. @sunaku

    at_exit: don't mask nonzero exit status due to $!

    sunaku committed Feb 3, 2012
    This change ensures that RSpec's at_exit handler doesn't mask (override)
    any nonzero exit status, which can happen when Ruby is on it's way out
    due to an uncaught exception ($!) such as a SyntaxError.
    
    Please see this bug report for more information:
    
    sunaku/tork#31 (comment)