Author: ivan
Date: Thu Jun 4 16:12:52 2026
New Revision: 1934983
Log:
Follow-up to r1934559.
* subversion/tests/libsvn_subr/utf-test.c
(test_utf8_width): Use positive number (1578706) instead of -147 as magic
number for apr_size_t variable.
Modified:
subversion/trunk/subversion/tests/libsvn_subr/utf-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/utf-test.c
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/utf-test.c Thu Jun 4
15:48:59 2026 (r1934982)
+++ subversion/trunk/subversion/tests/libsvn_subr/utf-test.c Thu Jun 4
16:12:52 2026 (r1934983)
@@ -1022,11 +1022,11 @@ static const char *bom = "\xEF\xBB\xBF"
static svn_error_t *
test_utf8_width(apr_pool_t *pool)
{
- apr_size_t length = -147; /* Magic number used to check... */
+ apr_size_t length = 1578706; /* Magic number used to check... */
SVN_TEST_INT_ASSERT(svn_utf_cstring_utf8_width(invalid), -1);
SVN_TEST_INT_ASSERT(svn_utf__cstring_width(&length, invalid), -1);
- SVN_TEST_INT_ASSERT(length, -147); /* ...that 'length' was not changed. */
+ SVN_TEST_INT_ASSERT(length, 1578706); /* ...that 'length' was not changed. */
SVN_TEST_INT_ASSERT(svn_utf_cstring_utf8_width(""), 0);
SVN_TEST_INT_ASSERT(svn_utf__cstring_width(&length, ""), 0);