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. 0_9-401-gc


From: Giuseppe Scrivano
Subject: [myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9-401-gcb10493
Date: Tue, 10 Nov 2009 22:39:59 +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  cb1049379e7c793d1e8c9e402691fedbed49e561 (commit)
      from  dc0439e55949fd7d4ce8d683562e957bd2d02508 (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 cb1049379e7c793d1e8c9e402691fedbed49e561
Author: Giuseppe Scrivano <address@hidden>
Date:   Tue Nov 10 23:39:35 2009 +0100

    Remove temporary files used by tests.

diff --git a/myserver/tests/test_file.cpp b/myserver/tests/test_file.cpp
index 4a3fb43..6a9d52b 100644
--- a/myserver/tests/test_file.cpp
+++ b/myserver/tests/test_file.cpp
@@ -64,6 +64,7 @@ public:
   void tearDown ()
   {
     delete tfile;
+    FilesUtility::deleteFile (fname);
   }
 
   void testCreateTemporaryFile ()
diff --git a/myserver/tests/test_security_manager.cpp 
b/myserver/tests/test_security_manager.cpp
index c40dc3e..291c72a 100644
--- a/myserver/tests/test_security_manager.cpp
+++ b/myserver/tests/test_security_manager.cpp
@@ -49,7 +49,8 @@ public:
 
   void setUp ()
   {
-    securityManager = new SecurityManager (&validatorFactory, 
&authMethodFactory);
+    securityManager =
+      new SecurityManager (&validatorFactory, &authMethodFactory);
   }
 
   void tearDown ()
@@ -61,8 +62,10 @@ public:
   {
     SecurityToken secToken;
     string xml ("xml");
-    CPPUNIT_ASSERT_EQUAL (securityManager->getPermissionMask (&secToken, 
(list<SecurityDomain*>*)NULL, xml, xml), 0);
-    CPPUNIT_ASSERT_EQUAL (securityManager->getPermissionMask (&secToken, 
(SecurityDomain**)NULL, xml, xml), 0);
+    CPPUNIT_ASSERT_EQUAL (securityManager->getPermissionMask (&secToken,
+                                   (list<SecurityDomain*>*)NULL, xml, xml), 0);
+    CPPUNIT_ASSERT_EQUAL (securityManager->getPermissionMask (&secToken,
+                                         (SecurityDomain**)NULL, xml, xml), 0);
   }
 };
 
diff --git a/myserver/tests/test_socket_pair.cpp 
b/myserver/tests/test_socket_pair.cpp
index fbae256..970b77a 100644
--- a/myserver/tests/test_socket_pair.cpp
+++ b/myserver/tests/test_socket_pair.cpp
@@ -100,6 +100,7 @@ public:
 
     file.close ();
     sp.close ();
+    FilesUtility::deleteFile (fname);
   }
 
   void testCreateClose ()

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

Summary of changes:
 myserver/tests/test_file.cpp             |    1 +
 myserver/tests/test_security_manager.cpp |    9 ++++++---
 myserver/tests/test_socket_pair.cpp      |    1 +
 3 files changed, 8 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU MyServer




reply via email to

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