Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51480 - in sandbox/threadpool: boost libs/tp/test
From: oliver.kowalke_at_[hidden]
Date: 2009-02-27 18:06:19


Author: olli
Date: 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
New Revision: 51480
URL: http://svn.boost.org/trac/boost/changeset/51480

Log:
* tests corrected

Text files modified:
   sandbox/threadpool/boost/future.hpp | 1 +
   sandbox/threadpool/libs/tp/test/test_bounded_queue_fifo.cpp | 6 +++---
   sandbox/threadpool/libs/tp/test/test_bounded_queue_lifo.cpp | 6 +++---
   sandbox/threadpool/libs/tp/test/test_bounded_queue_priority.cpp | 6 +++---
   sandbox/threadpool/libs/tp/test/test_bounded_queue_smart.cpp | 6 +++---
   sandbox/threadpool/libs/tp/test/test_unbounded_queue_fifo.cpp | 6 +++---
   sandbox/threadpool/libs/tp/test/test_unbounded_queue_lifo.cpp | 6 +++---
   sandbox/threadpool/libs/tp/test/test_unbounded_queue_priority.cpp | 6 +++---
   sandbox/threadpool/libs/tp/test/test_unbounded_queue_smart.cpp | 6 +++---
   9 files changed, 25 insertions(+), 24 deletions(-)

Modified: sandbox/threadpool/boost/future.hpp
==============================================================================
--- sandbox/threadpool/boost/future.hpp (original)
+++ sandbox/threadpool/boost/future.hpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -7,6 +7,7 @@
 #ifndef N2561_FUTURE_HPP
 #define N2561_FUTURE_HPP
 #include <stdexcept>
+#include <boost/thread.hpp>
 #include <boost/thread/detail/move.hpp>
 #include <boost/thread/thread_time.hpp>
 #include <boost/exception_ptr.hpp>

Modified: sandbox/threadpool/libs/tp/test/test_bounded_queue_fifo.cpp
==============================================================================
--- sandbox/threadpool/libs/tp/test/test_bounded_queue_fifo.cpp (original)
+++ sandbox/threadpool/libs/tp/test/test_bounded_queue_fifo.cpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -101,7 +101,7 @@
                 bool thrown( false);
                 try
                 { t.get(); }
- catch ( std::runtime_error const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -159,7 +159,7 @@
                 bool thrown( false);
                 try
                 { t.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -278,7 +278,7 @@
                 bool thrown( false);
                 try
                 { t.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }

Modified: sandbox/threadpool/libs/tp/test/test_bounded_queue_lifo.cpp
==============================================================================
--- sandbox/threadpool/libs/tp/test/test_bounded_queue_lifo.cpp (original)
+++ sandbox/threadpool/libs/tp/test/test_bounded_queue_lifo.cpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -101,7 +101,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( std::runtime_error const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -159,7 +159,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -279,7 +279,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }

Modified: sandbox/threadpool/libs/tp/test/test_bounded_queue_priority.cpp
==============================================================================
--- sandbox/threadpool/libs/tp/test/test_bounded_queue_priority.cpp (original)
+++ sandbox/threadpool/libs/tp/test/test_bounded_queue_priority.cpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -104,7 +104,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( std::runtime_error const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -166,7 +166,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -293,7 +293,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }

Modified: sandbox/threadpool/libs/tp/test/test_bounded_queue_smart.cpp
==============================================================================
--- sandbox/threadpool/libs/tp/test/test_bounded_queue_smart.cpp (original)
+++ sandbox/threadpool/libs/tp/test/test_bounded_queue_smart.cpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -104,7 +104,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( std::runtime_error const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -166,7 +166,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -299,7 +299,7 @@
                 bool thrown( false);
                 try
                 { f.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }

Modified: sandbox/threadpool/libs/tp/test/test_unbounded_queue_fifo.cpp
==============================================================================
--- sandbox/threadpool/libs/tp/test/test_unbounded_queue_fifo.cpp (original)
+++ sandbox/threadpool/libs/tp/test/test_unbounded_queue_fifo.cpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -88,7 +88,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( std::runtime_error const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -140,7 +140,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -251,7 +251,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }

Modified: sandbox/threadpool/libs/tp/test/test_unbounded_queue_lifo.cpp
==============================================================================
--- sandbox/threadpool/libs/tp/test/test_unbounded_queue_lifo.cpp (original)
+++ sandbox/threadpool/libs/tp/test/test_unbounded_queue_lifo.cpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -88,7 +88,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( std::runtime_error const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -140,7 +140,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -251,7 +251,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }

Modified: sandbox/threadpool/libs/tp/test/test_unbounded_queue_priority.cpp
==============================================================================
--- sandbox/threadpool/libs/tp/test/test_unbounded_queue_priority.cpp (original)
+++ sandbox/threadpool/libs/tp/test/test_unbounded_queue_priority.cpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -91,7 +91,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( std::runtime_error const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -147,7 +147,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -265,7 +265,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }

Modified: sandbox/threadpool/libs/tp/test/test_unbounded_queue_smart.cpp
==============================================================================
--- sandbox/threadpool/libs/tp/test/test_unbounded_queue_smart.cpp (original)
+++ sandbox/threadpool/libs/tp/test/test_unbounded_queue_smart.cpp 2009-02-27 18:06:17 EST (Fri, 27 Feb 2009)
@@ -91,7 +91,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( std::runtime_error const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -147,7 +147,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }
@@ -271,7 +271,7 @@
                 bool thrown( false);
                 try
                 { tsk.get(); }
- catch ( boost::thread_interrupted const&)
+ catch ( std::exception const&)
                 { thrown = true; }
                 BOOST_CHECK( thrown);
         }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk