From: "nobu (Nobuyoshi Nakada)" Date: 2012-11-20T21:08:28+09:00 Subject: [ruby-core:49684] [ruby-trunk - Feature #5726][Closed] Process::EXIT_SUCCESS and Process::EXIT_FAILURE Issue #5726 has been updated by nobu (Nobuyoshi Nakada). Status changed from Feedback to Closed ---------------------------------------- Feature #5726: Process::EXIT_SUCCESS and Process::EXIT_FAILURE https://bugs.ruby-lang.org/issues/5726#change-33205 Author: akr (Akira Tanaka) Status: Closed Priority: Normal Assignee: Category: Target version: I'd like to define Process::EXIT_SUCCESS and Process::EXIT_FAILURE. I want to use them to test my command line application. The test calls the main routine of the application and traps SystemExit. I'd like to compare status of the exception and EXIT_SUCCESS/EXIT_FAILURE but Ruby doesn't have constants for them. Note that the test doesn't spawn a process. So, there is no Process::Status object and Process::Status#success? is not usable. -- http://bugs.ruby-lang.org/