You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by vi...@apache.org on 2008/02/29 20:31:39 UTC
svn commit: r632418 - /stdcxx/trunk/tests/strings/21.string.access.cpp
Author: vitek
Date: Fri Feb 29 11:31:32 2008
New Revision: 632418
URL: http://svn.apache.org/viewvc?rev=632418&view=rev
Log:
2008-02-29 Travis Vitek <vi...@roguewave.com>
STDCXX-597
* tests/strings/21.string.access.cpp (test_access): Avoid purify
UMR warning when testing for end of string match
Modified:
stdcxx/trunk/tests/strings/21.string.access.cpp
Modified: stdcxx/trunk/tests/strings/21.string.access.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/strings/21.string.access.cpp?rev=632418&r1=632417&r2=632418&view=diff
==============================================================================
--- stdcxx/trunk/tests/strings/21.string.access.cpp (original)
+++ stdcxx/trunk/tests/strings/21.string.access.cpp Fri Feb 29 11:31:32 2008
@@ -271,8 +271,9 @@
char ()
};
- const bool success = 1 == rw_match (exp_res, pres, 1);
+ const size_t n = NPOS != tcase.nres ? 1 : 0;
+ const bool success = n == rw_match (exp_res, pres, n);
rw_assert (success, 0, tcase.line,
"line %d. %{$FUNCALL} == %{#c}, got %{#c}",
__LINE__, tcase.nres, *pres);