From 3336f7cb3f231630eee7a298b558c93afe7f3ab7 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 27 Nov 2003 15:34:53 +0000 Subject: * 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 --- lib/test/unit/ui/gtk/testrunner.rb | 2 +- lib/test/unit/ui/gtk2/testrunner.rb | 2 +- lib/test/unit/ui/tk/testrunner.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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: -- cgit