eval("exit " + argument);
fail("Expected a SystemExit to be thrown by calling exit.");
} catch (RaiseException re) {
RubyException raisedException = re.getException();
if (runtime.getClass("SystemExit").isInstance(raisedException)) {
IRubyObject status = raisedException.callMethod(runtime.getCurrentContext(), "status");
assertEquals(expectedStatus, status);
} else {
throw re;
}
}