From noreply at rubyforge.org Sun Feb 1 03:06:19 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 1 Feb 2009 03:06:19 -0500 (EST) Subject: [test-unit-tracker] [ test-unit-Bugs-23586 ] Test failures on Gentoo Linux with Ruby 1.9 Message-ID: <20090201080619.77BF718580F8@rubyforge.org> Bugs item #23586, was opened at 2009-01-17 03:39 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23586&group_id=5650 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Diego E. Petten? (flameeyes) Assigned to: Nobody (None) Summary: Test failures on Gentoo Linux with Ruby 1.9 Initial Comment: 1) Failure: test_pass_through_error_on_shutdown(Test::Unit::TC_TestCase) [./test/test_testcase.rb:474:in `check' ./test/test_testcase.rb:399:in `test_pass_through_error_on_shutdown']: Interrupt should be passed through: Should not be reached 2) Failure: test_pass_through_error_on_startup(Test::Unit::TC_TestCase) [./test/test_testcase.rb:474:in `check' ./test/test_testcase.rb:358:in `test_pass_through_error_on_startup']: Interrupt should be passed through: Should not be reached 3) Failure: test_re_raise_exception(Test::Unit::TC_TestCase) [./test/test_testcase.rb:474:in `check' ./test/test_testcase.rb:279:in `test_re_raise_exception']: Interrupt exception should be re-raised 4) Failure: test_run_suite_with_interrupt_exception(TestUnitUIMediator) [./test/ui/test_testrunmediator.rb:15]: exception expected but none was thrown. This happens while trying to package test-unit for Gentoo. If I need to submit more detailed information just let me know. Thanks, Diego ---------------------------------------------------------------------- >Comment By: Kouhei Sutou (kou) Date: 2009-02-01 17:06 Message: Sorry for my late response. I've fixed it in trunk. ---------------------------------------------------------------------- Comment By: Diego E. Petten? (flameeyes) Date: 2009-01-18 10:58 Message: Very good call, the problem happens when I run "rake audit", and indeed does not appear when I use test/run-test.rb. I'm using the tarball for the test anyway, no gem in the middle of it. ---------------------------------------------------------------------- Comment By: Kouhei Sutou (kou) Date: 2009-01-18 08:41 Message: How did you run test? % rake or % ruby test/run-test.rb ? Where did you get tests from? gem? tar.gz? Please show us your command lines to reproduce the problem on your environment. On my environment: % wget http://rubyforge.org/frs/download.php/48988/test-unit-2.0.2.tgz % tar xvfz test-unit-2.0.2.tgz % cd test-unit-2.0.2 % ruby test/run-test.rb Loaded suite test Started ............................................................................... ............................................................................. Finished in 2.080753 seconds. 156 tests, 913 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications ---------------------------------------------------------------------- Comment By: Diego E. Petten? (flameeyes) Date: 2009-01-17 21:45 Message: Happens with both of these: ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) [x86_64-linux] ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux] ---------------------------------------------------------------------- Comment By: Kouhei Sutou (kou) Date: 2009-01-17 11:29 Message: I can't reproduce it with test-unit 2.0.2 and the following ruby: % ruby --version ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) [x86_64-linux] What version of ruby are you using? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23586&group_id=5650 From noreply at rubyforge.org Sun Feb 1 03:06:39 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 1 Feb 2009 03:06:39 -0500 (EST) Subject: [test-unit-tracker] [ test-unit-Bugs-23586 ] Test failures on Gentoo Linux with Ruby 1.9 Message-ID: <20090201080639.3139A18580F8@rubyforge.org> Bugs item #23586, was opened at 2009-01-17 03:39 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23586&group_id=5650 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Diego E. Petten? (flameeyes) Assigned to: Nobody (None) Summary: Test failures on Gentoo Linux with Ruby 1.9 Initial Comment: 1) Failure: test_pass_through_error_on_shutdown(Test::Unit::TC_TestCase) [./test/test_testcase.rb:474:in `check' ./test/test_testcase.rb:399:in `test_pass_through_error_on_shutdown']: Interrupt should be passed through: Should not be reached 2) Failure: test_pass_through_error_on_startup(Test::Unit::TC_TestCase) [./test/test_testcase.rb:474:in `check' ./test/test_testcase.rb:358:in `test_pass_through_error_on_startup']: Interrupt should be passed through: Should not be reached 3) Failure: test_re_raise_exception(Test::Unit::TC_TestCase) [./test/test_testcase.rb:474:in `check' ./test/test_testcase.rb:279:in `test_re_raise_exception']: Interrupt exception should be re-raised 4) Failure: test_run_suite_with_interrupt_exception(TestUnitUIMediator) [./test/ui/test_testrunmediator.rb:15]: exception expected but none was thrown. This happens while trying to package test-unit for Gentoo. If I need to submit more detailed information just let me know. Thanks, Diego ---------------------------------------------------------------------- Comment By: Kouhei Sutou (kou) Date: 2009-02-01 17:06 Message: Sorry for my late response. I've fixed it in trunk. ---------------------------------------------------------------------- Comment By: Diego E. Petten? (flameeyes) Date: 2009-01-18 10:58 Message: Very good call, the problem happens when I run "rake audit", and indeed does not appear when I use test/run-test.rb. I'm using the tarball for the test anyway, no gem in the middle of it. ---------------------------------------------------------------------- Comment By: Kouhei Sutou (kou) Date: 2009-01-18 08:41 Message: How did you run test? % rake or % ruby test/run-test.rb ? Where did you get tests from? gem? tar.gz? Please show us your command lines to reproduce the problem on your environment. On my environment: % wget http://rubyforge.org/frs/download.php/48988/test-unit-2.0.2.tgz % tar xvfz test-unit-2.0.2.tgz % cd test-unit-2.0.2 % ruby test/run-test.rb Loaded suite test Started ............................................................................... ............................................................................. Finished in 2.080753 seconds. 156 tests, 913 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications ---------------------------------------------------------------------- Comment By: Diego E. Petten? (flameeyes) Date: 2009-01-17 21:45 Message: Happens with both of these: ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) [x86_64-linux] ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux] ---------------------------------------------------------------------- Comment By: Kouhei Sutou (kou) Date: 2009-01-17 11:29 Message: I can't reproduce it with test-unit 2.0.2 and the following ruby: % ruby --version ruby 1.9.1 (2008-12-30 patchlevel-0 revision 21203) [x86_64-linux] What version of ruby are you using? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23586&group_id=5650 From noreply at rubyforge.org Mon Feb 16 10:15:10 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 16 Feb 2009 10:15:10 -0500 (EST) Subject: [test-unit-tracker] [ test-unit-Bugs-23949 ] Dynamic testsuite fails to work with test-unit but works with Ruby 1.8 original implementation Message-ID: <20090216151510.8B6A218580F0@rubyforge.org> Bugs item #23949, was opened at 2009-02-16 16:15 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23949&group_id=5650 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Diego E. Petten? (flameeyes) Assigned to: Nobody (None) Summary: Dynamic testsuite fails to work with test-unit but works with Ruby 1.8 original implementation Initial Comment: Hi, I'm sincerely not sure how to reduce this to a working testcase, but the testsuite I've written for Ruby-Elf (which is "dynamic" since I have lots of test cases that are derived from a template) fail to work with test-unit. While on Ruby 1.8 it has more than 100 tests, it reports 0 tests when test-unit is installed (and nothing else is changed). You can find the source code for it at git://git.flameeyes.eu/flameeyes/ruby-elf.git (current head 0360b0a3b51bf9443b9f33c5cd1932a2c3bbd945), if you can check what the problem is it would help a lot. Thanks, Diego ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23949&group_id=5650 From noreply at rubyforge.org Wed Feb 18 06:44:46 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 18 Feb 2009 06:44:46 -0500 (EST) Subject: [test-unit-tracker] [ test-unit-Bugs-23949 ] Dynamic testsuite fails to work with test-unit but works with Ruby 1.8 original implementation Message-ID: <20090218114446.B815A1858104@rubyforge.org> Bugs item #23949, was opened at 2009-02-17 00:15 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23949&group_id=5650 Category: None Group: None >Status: Closed >Resolution: Rejected Priority: 3 Submitted By: Diego E. Petten? (flameeyes) Assigned to: Nobody (None) Summary: Dynamic testsuite fails to work with test-unit but works with Ruby 1.8 original implementation Initial Comment: Hi, I'm sincerely not sure how to reduce this to a working testcase, but the testsuite I've written for Ruby-Elf (which is "dynamic" since I have lots of test cases that are derived from a template) fail to work with test-unit. While on Ruby 1.8 it has more than 100 tests, it reports 0 tests when test-unit is installed (and nothing else is changed). You can find the source code for it at git://git.flameeyes.eu/flameeyes/ruby-elf.git (current head 0360b0a3b51bf9443b9f33c5cd1932a2c3bbd945), if you can check what the problem is it would help a lot. Thanks, Diego ---------------------------------------------------------------------- >Comment By: Kouhei Sutou (kou) Date: 2009-02-18 20:44 Message: Use Module not Class for sharing tests. It's natural. It seems that you don't want to run Elf::TestUnit as a test case. You want to use it as an abstract test case, don't you? If you use Module, your test cases are worked well with both of old and the current Test::Unit. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23949&group_id=5650 From noreply at rubyforge.org Wed Feb 18 07:20:56 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 18 Feb 2009 07:20:56 -0500 (EST) Subject: [test-unit-tracker] [ test-unit-Bugs-23949 ] Dynamic testsuite fails to work with test-unit but works with Ruby 1.8 original implementation Message-ID: <20090218122056.9AD331858104@rubyforge.org> Bugs item #23949, was opened at 2009-02-17 00:15 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23949&group_id=5650 Category: None Group: None Status: Closed Resolution: Rejected Priority: 3 Submitted By: Diego E. Petten? (flameeyes) Assigned to: Nobody (None) Summary: Dynamic testsuite fails to work with test-unit but works with Ruby 1.8 original implementation Initial Comment: Hi, I'm sincerely not sure how to reduce this to a working testcase, but the testsuite I've written for Ruby-Elf (which is "dynamic" since I have lots of test cases that are derived from a template) fail to work with test-unit. While on Ruby 1.8 it has more than 100 tests, it reports 0 tests when test-unit is installed (and nothing else is changed). You can find the source code for it at git://git.flameeyes.eu/flameeyes/ruby-elf.git (current head 0360b0a3b51bf9443b9f33c5cd1932a2c3bbd945), if you can check what the problem is it would help a lot. Thanks, Diego ---------------------------------------------------------------------- >Comment By: Kouhei Sutou (kou) Date: 2009-02-18 21:20 Message: NOTE: I've attached a patch. ---------------------------------------------------------------------- Comment By: Kouhei Sutou (kou) Date: 2009-02-18 20:44 Message: Use Module not Class for sharing tests. It's natural. It seems that you don't want to run Elf::TestUnit as a test case. You want to use it as an abstract test case, don't you? If you use Module, your test cases are worked well with both of old and the current Test::Unit. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23949&group_id=5650 From noreply at rubyforge.org Wed Feb 18 07:46:01 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 18 Feb 2009 07:46:01 -0500 (EST) Subject: [test-unit-tracker] [ test-unit-Bugs-23949 ] Dynamic testsuite fails to work with test-unit but works with Ruby 1.8 original implementation Message-ID: <20090218124602.14D891978543@rubyforge.org> Bugs item #23949, was opened at 2009-02-16 16:15 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23949&group_id=5650 Category: None Group: None Status: Closed Resolution: Rejected Priority: 3 Submitted By: Diego E. Petten? (flameeyes) Assigned to: Nobody (None) Summary: Dynamic testsuite fails to work with test-unit but works with Ruby 1.8 original implementation Initial Comment: Hi, I'm sincerely not sure how to reduce this to a working testcase, but the testsuite I've written for Ruby-Elf (which is "dynamic" since I have lots of test cases that are derived from a template) fail to work with test-unit. While on Ruby 1.8 it has more than 100 tests, it reports 0 tests when test-unit is installed (and nothing else is changed). You can find the source code for it at git://git.flameeyes.eu/flameeyes/ruby-elf.git (current head 0360b0a3b51bf9443b9f33c5cd1932a2c3bbd945), if you can check what the problem is it would help a lot. Thanks, Diego ---------------------------------------------------------------------- >Comment By: Diego E. Petten? (flameeyes) Date: 2009-02-18 13:46 Message: Thanks a lot for the patch, I wouldn't have expected for the change to be that obvious. I guess sometimes I still have C++ methods coming up ;) ---------------------------------------------------------------------- Comment By: Kouhei Sutou (kou) Date: 2009-02-18 13:20 Message: NOTE: I've attached a patch. ---------------------------------------------------------------------- Comment By: Kouhei Sutou (kou) Date: 2009-02-18 12:44 Message: Use Module not Class for sharing tests. It's natural. It seems that you don't want to run Elf::TestUnit as a test case. You want to use it as an abstract test case, don't you? If you use Module, your test cases are worked well with both of old and the current Test::Unit. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21856&aid=23949&group_id=5650 From noreply at rubyforge.org Sat Feb 28 06:44:51 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 28 Feb 2009 06:44:51 -0500 (EST) Subject: [test-unit-tracker] [ test-unit-Feature Requests-24210 ] Allow assert_kind_of to take an array Message-ID: <20090228114451.EF15918580F4@rubyforge.org> Feature Requests item #24210, was opened at 2009-02-28 04:44 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21859&aid=24210&group_id=5650 Category: None Group: None Status: Open Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Nobody (None) Summary: Allow assert_kind_of to take an array Initial Comment: Hi, I sometimes have methods that return a value or nil, depending on the circumstance. That means I have to write my tests like this: assert_true(@obj.method.class.include?(Fixnum, NilClass)) I think it would be more readable if I could do this: assert_kind_of([Fixnum,NilClass], @obj.method) Is there any chance you could support that? Regards, Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21859&aid=24210&group_id=5650 From noreply at rubyforge.org Sat Feb 28 08:32:36 2009 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 28 Feb 2009 08:32:36 -0500 (EST) Subject: [test-unit-tracker] [ test-unit-Feature Requests-24210 ] Allow assert_kind_of to take an array Message-ID: <20090228133236.EB71018580EB@rubyforge.org> Feature Requests item #24210, was opened at 2009-02-28 20:44 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21859&aid=24210&group_id=5650 Category: None Group: None >Status: Closed Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Nobody (None) Summary: Allow assert_kind_of to take an array Initial Comment: Hi, I sometimes have methods that return a value or nil, depending on the circumstance. That means I have to write my tests like this: assert_true(@obj.method.class.include?(Fixnum, NilClass)) I think it would be more readable if I could do this: assert_kind_of([Fixnum,NilClass], @obj.method) Is there any chance you could support that? Regards, Dan ---------------------------------------------------------------------- >Comment By: Kouhei Sutou (kou) Date: 2009-02-28 22:32 Message: Thanks for your suggestion. I've implemented it in trunk. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=21859&aid=24210&group_id=5650