myserver-commit
[Top][All Lists]
Advanced

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

[myserver-commit] [2982] Fixed segfault in the tests suite.


From: Giuseppe Scrivano
Subject: [myserver-commit] [2982] Fixed segfault in the tests suite.
Date: Fri, 16 Jan 2009 21:27:43 +0000

Revision: 2982
          http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=2982
Author:   gscrivano
Date:     2009-01-16 21:27:42 +0000 (Fri, 16 Jan 2009)

Log Message:
-----------
Fixed segfault in the tests suite.

Modified Paths:
--------------
    trunk/myserver/tests/test_xml_validator.cpp

Modified: trunk/myserver/tests/test_xml_validator.cpp
===================================================================
--- trunk/myserver/tests/test_xml_validator.cpp 2009-01-10 15:39:52 UTC (rev 
2981)
+++ trunk/myserver/tests/test_xml_validator.cpp 2009-01-16 21:27:42 UTC (rev 
2982)
@@ -46,6 +46,10 @@
   {
     string val("value");
     SecurityToken secToken;
+    secToken.setResource (&val);
+    secToken.setResource (&val);
+    secToken.setDirectory (&val);
+    secToken.setSysDirectory (&val);
     CPPUNIT_ASSERT_EQUAL(xmlValidator->getPermissionMaskImpl(&secToken, NULL, 
NULL), 0);
  
   }
@@ -53,6 +57,11 @@
   void testGetPermissionMask()
   {
     SecurityToken secToken;
+    string val("value");
+    secToken.setResource (&val);
+    secToken.setDirectory (&val);
+    secToken.setSysDirectory (&val);
+
     CPPUNIT_ASSERT_EQUAL (xmlValidator->getPermissionMask (&secToken, 
(SecurityDomain**) NULL, NULL), 0);
     CPPUNIT_ASSERT_EQUAL (xmlValidator->getPermissionMask (&secToken, 
(list<SecurityDomain*>*) NULL, NULL), 0);
   }






reply via email to

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