diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-27 15:34:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-27 15:34:53 +0000 |
commit | 3336f7cb3f231630eee7a298b558c93afe7f3ab7 (patch) | |
tree | d258c8e544250e7bb63c51404a28ebe5d0eb791f /lib | |
parent | 7cc1a562b3859130e6f80278d0d503e6c70eac36 (diff) | |
download | ruby-3336f7cb3f231630eee7a298b558c93afe7f3ab7.tar.gz ruby-3336f7cb3f231630eee7a298b558c93afe7f3ab7.tar.xz ruby-3336f7cb3f231630eee7a298b558c93afe7f3ab7.zip |
* eval.c (rb_f_exit), process.c (rb_f_exit_bang): treat true as
success, false as failure. [ruby-dev:22067]
* eval.c (rb_f_abort, rb_thread_switch), process.c (rb_f_system): use
ANSI macro instead of hard coded value.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test/unit/ui/gtk/testrunner.rb | 2 | ||||
-rw-r--r-- | lib/test/unit/ui/gtk2/testrunner.rb | 2 | ||||
-rw-r--r-- | lib/test/unit/ui/tk/testrunner.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/test/unit/ui/gtk/testrunner.rb b/lib/test/unit/ui/gtk/testrunner.rb index 7582c489a..d6ce527fe 100644 --- a/lib/test/unit/ui/gtk/testrunner.rb +++ b/lib/test/unit/ui/gtk/testrunner.rb @@ -94,7 +94,7 @@ module Test retry rescue end - abort if @red + exit !@red end def stop(*) # :nodoc: diff --git a/lib/test/unit/ui/gtk2/testrunner.rb b/lib/test/unit/ui/gtk2/testrunner.rb index ee78f91ac..1efc7dd75 100644 --- a/lib/test/unit/ui/gtk2/testrunner.rb +++ b/lib/test/unit/ui/gtk2/testrunner.rb @@ -406,7 +406,7 @@ module Test retry rescue end - abort if @red + exit !@red end # def start_ui private :start_ui diff --git a/lib/test/unit/ui/tk/testrunner.rb b/lib/test/unit/ui/tk/testrunner.rb index 19c39a22f..3c3e0f554 100644 --- a/lib/test/unit/ui/tk/testrunner.rb +++ b/lib/test/unit/ui/tk/testrunner.rb @@ -102,7 +102,7 @@ module Test retry rescue end - abort if @red + exit !@red end def stop # :nodoc: |