Update of /cvsroot/boost/boost/libs/asio/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15893/test

Modified Files:
        buffered_read_stream.cpp buffered_stream.cpp 
        buffered_write_stream.cpp 
Log Message:
Ensure that what gets thrown is the system_error exception.

Index: buffered_read_stream.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/buffered_read_stream.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- buffered_read_stream.cpp    9 Nov 2006 03:02:16 -0000       1.3
+++ buffered_read_stream.cpp    9 Nov 2006 11:21:42 -0000       1.4
@@ -106,7 +106,7 @@
 {
   BOOST_CHECK(!e);
   if (e)
-    throw e; // Terminate test.
+    throw boost::system::system_error(e); // Terminate test.
   *total_bytes_written += bytes_transferred;
 }
 
@@ -116,7 +116,7 @@
 {
   BOOST_CHECK(!e);
   if (e)
-    throw e; // Terminate test.
+    throw boost::system::system_error(e); // Terminate test.
   *total_bytes_read += bytes_transferred;
 }
 

Index: buffered_stream.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/buffered_stream.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- buffered_stream.cpp 9 Nov 2006 03:02:16 -0000       1.3
+++ buffered_stream.cpp 9 Nov 2006 11:21:43 -0000       1.4
@@ -108,7 +108,7 @@
 {
   BOOST_CHECK(!e);
   if (e)
-    throw e; // Terminate test.
+    throw boost::system::system_error(e); // Terminate test.
   *total_bytes_written += bytes_transferred;
 }
 
@@ -123,7 +123,7 @@
 {
   BOOST_CHECK(!e);
   if (e)
-    throw e; // Terminate test.
+    throw boost::system::system_error(e); // Terminate test.
   *total_bytes_read += bytes_transferred;
 }
 

Index: buffered_write_stream.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/buffered_write_stream.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- buffered_write_stream.cpp   9 Nov 2006 03:02:16 -0000       1.3
+++ buffered_write_stream.cpp   9 Nov 2006 11:21:43 -0000       1.4
@@ -108,7 +108,7 @@
 {
   BOOST_CHECK(!e);
   if (e)
-    throw e; // Terminate test.
+    throw boost::system::system_error(e); // Terminate test.
   *total_bytes_written += bytes_transferred;
 }
 
@@ -123,7 +123,7 @@
 {
   BOOST_CHECK(!e);
   if (e)
-    throw e; // Terminate test.
+    throw boost::system::system_error(e); // Terminate test.
   *total_bytes_read += bytes_transferred;
 }
 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to