myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-232


From: Giuseppe Scrivano
Subject: [myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-232-gd8f39d2
Date: Thu, 13 May 2010 22:39:52 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU MyServer".

The branch, master has been updated
       via  d8f39d2f66322b9acf6494470db2e3955bd5d3c4 (commit)
       via  07f5940df93fb1682c1957412a25dae50103d862 (commit)
      from  6ba713c332131f33796539a9ee504cdef6a51bb1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------


commit d8f39d2f66322b9acf6494470db2e3955bd5d3c4
Author: Giuseppe Scrivano <address@hidden>
Date:   Thu May 13 15:36:22 2010 -0700

    Don't assume the errno value.

diff --git a/myserver/tests/test_exceptions.cpp 
b/myserver/tests/test_exceptions.cpp
index d5e628f..1a983d4 100644
--- a/myserver/tests/test_exceptions.cpp
+++ b/myserver/tests/test_exceptions.cpp
@@ -84,19 +84,19 @@ public:
 
   void testWrongCwd ()
   {
+    bool success = false;
     try
       {
         char *p = checked::getcwd (buf, 1);
         CPPUNIT_FAIL ("The exception in testWrongCwd wasn't thrown or caught");
       }
-    catch (OverflowException& e)
-      {
-        CPPUNIT_ASSERT (e.getErrno () == ERANGE);
-      }
     catch (...)
       {
-        CPPUNIT_FAIL ("The wrong exception in testWrongCwd was thrown");
+       success = true;
       }
+
+    if (! success)
+      CPPUNIT_FAIL ("No exception was thrown!");
   }
 };
 



commit 07f5940df93fb1682c1957412a25dae50103d862
Author: Giuseppe Scrivano <address@hidden>
Date:   Thu May 13 15:30:51 2010 -0700

    Remove a test that cause a segfault under FreeBSD.

diff --git a/myserver/tests/test_exceptions.cpp 
b/myserver/tests/test_exceptions.cpp
index 362ba48..d5e628f 100644
--- a/myserver/tests/test_exceptions.cpp
+++ b/myserver/tests/test_exceptions.cpp
@@ -31,7 +31,6 @@ using namespace std;
 class TestExceptions : public CppUnit::TestFixture
 {
   CPPUNIT_TEST_SUITE ( TestExceptions );
-  CPPUNIT_TEST (testWrongCloseDir);
   CPPUNIT_TEST (testWrongCwd);
   CPPUNIT_TEST (testErrno);
   CPPUNIT_TEST (testGetBacktrace);
@@ -49,23 +48,6 @@ public:
 
   void tearDown () {}
 
-  void testWrongCloseDir ()
-  {
-    try
-      {
-        checked::closedir (foodir);
-        CPPUNIT_FAIL ("The exception in testWrongCloseDir wasn't thrown or 
caught");
-      }
-    catch (ArgumentListException& e)
-      {
-        CPPUNIT_ASSERT (e.getErrno () == EINVAL);
-      }
-    catch (...)
-      {
-        CPPUNIT_FAIL ("The wrong exception in testWrongCloseDir was thrown");
-      }
-  }
-
   void testGetBacktrace ()
   {
     try

-----------------------------------------------------------------------

Summary of changes:
 myserver/tests/test_exceptions.cpp |   28 +++++-----------------------
 1 files changed, 5 insertions(+), 23 deletions(-)


hooks/post-receive
-- 
GNU MyServer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]