Changeset 79012


Ignore:
Timestamp:
Jun 19, 2012, 8:51:02 PM (6 years ago)
Author:
Emil Dotchevski
Message:

Bug in exception_ptr_test.cpp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/exception/test/exception_ptr_test.cpp

    r65161 r79012  
    4545    explicit
    4646    thread_handle( boost::function<void()> const & f ):
    47         t_(boost::bind(thread_wrapper,f,err_))
     47        t_(boost::bind(thread_wrapper,f,boost::ref(err_)))
    4848        {
    4949        }
     
    6464    {
    6565    t.t_.join();
    66     if( t.err_ )
    67         rethrow_exception(t.err_);
     66    assert(t.err_);
     67    rethrow_exception(t.err_);
    6868    }
    6969
     
    8080        }
    8181
    82     exc( exc const & )
     82    exc( exc const & e ):
     83        boost::exception(e),
     84        std::exception(e)
    8385        {
    8486        ++exc_count;
     
    110112        {
    111113        join(*t);
     114        BOOST_TEST(false);
    112115        }
    113116    catch(
     
    126129        {
    127130        std::vector< boost::shared_ptr<thread_handle> > threads;
    128         std::generate_n(std::inserter(threads,threads.end()),256,boost::bind(create_thread,thread_func));
     131        std::generate_n(std::inserter(threads,threads.end()),1,boost::bind(create_thread,thread_func));
    129132        std::for_each(threads.begin(),threads.end(),check);
    130133        return boost::report_errors();
Note: See TracChangeset for help on using the changeset viewer.