subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1330729 - /subversion/trunk/subversion/tests/libsvn_subr/string-test.c
Date Thu, 26 Apr 2012 09:20:27 GMT
Author: danielsh
Date: Thu Apr 26 09:20:26 2012
New Revision: 1330729

URL: http://svn.apache.org/viewvc?rev=1330729&view=rev
Log:
Test an svn__i64toa() edge case.

* subversion/tests/libsvn_subr/string-test.c
  (test24): Test svn__i64toa(APR_INT64_MIN).

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/string-test.c

Modified: subversion/trunk/subversion/tests/libsvn_subr/string-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/string-test.c?rev=1330729&r1=1330728&r2=1330729&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/string-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/string-test.c Thu Apr 26 09:20:26 2012
@@ -529,6 +529,10 @@ test24(apr_pool_t *pool)
   SVN_TEST_ASSERT(length == 19);
   SVN_TEST_STRING_ASSERT(buffer, "9223372036854775807");
 
+  length = svn__i64toa(buffer, APR_INT64_MIN);
+  SVN_TEST_ASSERT(length == 20);
+  SVN_TEST_STRING_ASSERT(buffer, "-9223372036854775808");
+
   length = svn__ui64toa(buffer, 0);
   SVN_TEST_ASSERT(length == 1);
   SVN_TEST_STRING_ASSERT(buffer, "0");



Mime
View raw message