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-401


From: Giuseppe Scrivano
Subject: [myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-401-g0fb0430
Date: Thu, 14 Oct 2010 18:20:36 +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  0fb04309aed1d0e24d7d987ed27f6baa3f1dac8c (commit)
      from  f23f0fc25c69aa077541f1eb91dac80e69c5232f (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 0fb04309aed1d0e24d7d987ed27f6baa3f1dac8c
Author: Giuseppe Scrivano <address@hidden>
Date:   Thu Oct 14 20:15:12 2010 +0200

    tests: Fix build under 64 bits systems.

diff --git a/myserver/tests/test_mem_buff.cpp b/myserver/tests/test_mem_buff.cpp
index 2f997dc..39458f1 100644
--- a/myserver/tests/test_mem_buff.cpp
+++ b/myserver/tests/test_mem_buff.cpp
@@ -56,14 +56,14 @@ public:
 
   void testLength ()
   {
-    u_int len = 10;
+    size_t len = 10;
     memBuff->setRealLength (len);
-    CPPUNIT_ASSERT_EQUAL (memBuff->getLength (), 0u);
+    CPPUNIT_ASSERT_EQUAL (memBuff->getLength (), (size_t) 0);
     CPPUNIT_ASSERT_EQUAL (memBuff->getRealLength (), len);
 
     *memBuff << (const char*)"1234567890";
 
-    CPPUNIT_ASSERT_EQUAL (memBuff->getLength (), 10u);
+    CPPUNIT_ASSERT_EQUAL (memBuff->getLength (), (size_t) 10);
 
     memBuff->setLength (len / 2);
     CPPUNIT_ASSERT_EQUAL (memBuff->getRealLength (), len);
@@ -73,11 +73,11 @@ public:
   void testFind ()
   {
     *memBuff << (const char*)"1234567890";
-    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5'), 4u);
+    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5'), (size_t) 4);
 
-    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5', 4), 4u);
+    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5', 4), (size_t) 4);
 
-    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5', 6), (u_int)-1);
+    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5', 6), (size_t) -1);
 
 
   }
@@ -85,11 +85,11 @@ public:
   void testReplace ()
   {
     *memBuff << (const char*)"1234567890";
-    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5'), 4u);
+    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5'), (size_t) 4);
 
     memBuff->replace ('5', '6');
 
-    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5'), (u_int)-1);
+    CPPUNIT_ASSERT_EQUAL (memBuff->find ('5'), (size_t) -1);
   }
 
   void testUintToStr ()

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

Summary of changes:
 myserver/tests/test_mem_buff.cpp |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
GNU MyServer



reply via email to

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