lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [4865] Work around a libc QoI issue


From: Greg Chicares
Subject: [lmi-commits] [4865] Work around a libc QoI issue
Date: Mon, 26 Apr 2010 13:42:53 +0000

Revision: 4865
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4865
Author:   chicares
Date:     2010-04-26 13:42:53 +0000 (Mon, 26 Apr 2010)
Log Message:
-----------
Work around a libc QoI issue

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/snprintf_test.cpp
    lmi/trunk/value_cast_test.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2010-04-26 12:40:25 UTC (rev 4864)
+++ lmi/trunk/ChangeLog 2010-04-26 13:42:53 UTC (rev 4865)
@@ -25071,3 +25071,9 @@
   rounding_rules.hpp
 Mix class xml_serializable into class rounding_rules.
 
+20100426T1342Z <address@hidden> [755]
+
+  snprintf_test.cpp
+  value_cast_test.cpp
+Work around a libc QoI issue.
+

Modified: lmi/trunk/snprintf_test.cpp
===================================================================
--- lmi/trunk/snprintf_test.cpp 2010-04-26 12:40:25 UTC (rev 4864)
+++ lmi/trunk/snprintf_test.cpp 2010-04-26 13:42:53 UTC (rev 4865)
@@ -100,7 +100,9 @@
         "00000000000"
         ".0000000000000000"
         );
-    BOOST_TEST_EQUAL(e, buf);
+    // http://lists.nongnu.org/archive/html/lmi/2010-04/msg00042.html
+    int const number_of_digits = 16;
+    BOOST_TEST(0 == e.compare(0, number_of_digits, buf, 0, number_of_digits));
 
     return 0;
 }

Modified: lmi/trunk/value_cast_test.cpp
===================================================================
--- lmi/trunk/value_cast_test.cpp       2010-04-26 12:40:25 UTC (rev 4864)
+++ lmi/trunk/value_cast_test.cpp       2010-04-26 13:42:53 UTC (rev 4865)
@@ -336,7 +336,9 @@
         "00000000000000000000000000000000000000000000000000"
         "00000000000"
         );
-    BOOST_TEST_EQUAL(e, a);
+    // http://lists.nongnu.org/archive/html/lmi/2010-04/msg00042.html
+    int const number_of_digits = 16;
+    BOOST_TEST(0 == e.compare(0, number_of_digits, a, 0, number_of_digits));
 
     // An empty string should be convertible to string without error.
     std::string s;





reply via email to

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