#17 ✓invalid
bahuvrihi

Thread test fails on Windows

Reported by bahuvrihi | April 26th, 2008 @ 05:22 PM

One time failure of a test on windows... an older but still fully capable box:

  1) Failure:
test_no_new_threads_appear_after_clean_multithread_exit(AppTest)
    [./test/app_test.rb:826:in `test_no_new_threads_appear_after_clean_multithre
ad_exit'
     ./test/app_test.rb:63:in `extended_test_with_thread_check'
     ./test/../lib/tap/test/subset_methods.rb:353:in `subset_test'
     ./test/../lib/tap/test/subset_methods.rb:369:in `extended_test'
     ./test/app_test.rb:61:in `extended_test_with_thread_check'
     ./test/app_test.rb:807:in `test_no_new_threads_appear_after_clean_multithre
ad_exit']:
<3> expected but was
<1>.

Comments and changes to this ticket

  • bahuvrihi

    bahuvrihi May 31st, 2008 @ 01:11 PM

    Related failure for JRuby on Mac:

      1) Failure:
    test_terminate_on_thread_when_error_is_handled_still_raises_error(AppTest)
        [/Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:974:in `test_terminate_on_thread_when_error_is_handled_still_raises_error'
         /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:63:in `extended_test_with_thread_check'
         /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:353:in `subset_test'
         /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:369:in `extended_test'
         /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:61:in `extended_test_with_thread_check'
         /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:936:in `test_terminate_on_thread_when_error_is_handled_still_raises_error']:
    <false> is not true.
    
  • bahuvrihi

    bahuvrihi July 2nd, 2008 @ 10:00 PM

    • Tag set to error, tap

    Intermittent, but seems to be a consistent failure for commit: 3f9549dcf16ce51e1a37710064fc99da5e3f28e1

    JRuby on Mac:

      1) Failure:
    test_info_can_be_called_during_a_run(AppTest)
        [/Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:902:in `test_info_can_be_called_during_a_run'
         /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:353:in `subset_test'
         /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:369:in `extended_test'
         /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:869:in `test_info_can_be_called_during_a_run']:
    <"state: 0 (READY) queue: 3 thread_queue: 0 threads: 0 results: 2"> expected but was
    <"state: 0 (READY) queue: 0 thread_queue: 0 threads: 0 results: 2">.
    
      2) Error:
    test_run_single_task_from_a_thread(AppTest):
    LocalJumpError: break from proc-closure
        /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:435:in `initialize'
    
      3) Error:
    test_run_speed(AppTest):
    NoMethodError: private method `format' called for nil:NilClass
        /Users/simonchiang/Ruby/jruby/lib/ruby/1.8/benchmark.rb:378:in `item'
        /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:1614:in `test_run_speed'
        /Users/simonchiang/Ruby/jruby/lib/ruby/1.8/benchmark.rb:177:in `benchmark'
        /Users/simonchiang/Ruby/jruby/lib/ruby/1.8/benchmark.rb:207:in `bm'
        /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:384:in `benchmark_test'
        /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:353:in `subset_test'
        /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:381:in `benchmark_test'
        /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:1610:in `test_run_speed'
    
      4) Failure:
    test_stop_prevents_non_executing_tasks_from_executing_on_threads_and_requeues_thread_queue(AppTest)
        [/Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:693:in `test_stop_prevents_non_executing_tasks_from_executing_on_threads_and_requeues_thread_queue'
         /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:63:in `extended_test_with_thread_check'
         /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:353:in `subset_test'
         /Users/simonchiang/Documents/Gems/tap/./test/../lib/tap/test/subset_methods.rb:369:in `extended_test'
         /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:61:in `extended_test_with_thread_check'
         /Users/simonchiang/Documents/Gems/tap/./test/app_test.rb:668:in `test_stop_prevents_non_executing_tasks_from_executing_on_threads_and_requeues_thread_queue']:
    <3> expected but was
    <0>.
    
  • bahuvrihi

    bahuvrihi September 9th, 2008 @ 06:48 PM

    • State changed from “new” to “invalid”

    Threading was removed from Tap (cd85b5806e30378279a457396f571c7bcbb17531)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A framework for making configurable, file-based tasks and workflows.

People watching this ticket

Tags

Pages