You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2006/05/13 00:39:31 UTC

svn commit: r405911 - /incubator/stdcxx/trunk/tests/strings/21.string.substr.cpp

Author: sebor
Date: Fri May 12 15:39:30 2006
New Revision: 405911

URL: http://svn.apache.org/viewcvs?rev=405911&view=rev
Log:
2006-05-12  Martin Sebor  <se...@roguewave.com>

	* 21.string.substr.cpp (test_substr): Inverted the expression
	in an unconditional assertion to make it actually fire when it
	gets hit and to silence icc warnings #279: controlling expression
	is constant.

Modified:
    incubator/stdcxx/trunk/tests/strings/21.string.substr.cpp

Modified: incubator/stdcxx/trunk/tests/strings/21.string.substr.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/strings/21.string.substr.cpp?rev=405911&r1=405910&r2=405911&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/strings/21.string.substr.cpp (original)
+++ incubator/stdcxx/trunk/tests/strings/21.string.substr.cpp Fri May 12 15:39:30 2006
@@ -253,7 +253,7 @@
                 break;
 
             default:
-                RW_ASSERT ("test logic error: unknown substr overload");
+                RW_ASSERT (!"logic error: unknown substr overload");
                 return;
         }