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/07/10 01:18:46 UTC

svn commit: r420372 - /incubator/stdcxx/trunk/tests/self/0.strncmp.cpp

Author: sebor
Date: Sun Jul  9 16:18:46 2006
New Revision: 420372

URL: http://svn.apache.org/viewvc?rev=420372&view=rev
Log:
2006-07-09  Martin Sebor  <se...@roguewave.com>

	* 0.strncmp.cpp (run_test): Used SIZE_MAX instead of ~0.

Modified:
    incubator/stdcxx/trunk/tests/self/0.strncmp.cpp

Modified: incubator/stdcxx/trunk/tests/self/0.strncmp.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.strncmp.cpp?rev=420372&r1=420371&r2=420372&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/self/0.strncmp.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.strncmp.cpp Sun Jul  9 16:18:46 2006
@@ -1,21 +1,27 @@
 /************************************************************************
  *
- * 0.strncmp.cpp - test exercising the rw_strncmp() utility functions
+ * 0.strcmp.cpp - test exercising the rw_strcmp() utility functions
  *
  * $Id$
  *
  ************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Copyright 2005-2006 The Apache Software Foundation or its licensors,
+ * as applicable.
+ *
+ * Copyright 2004-2006 Rogue Wave Software.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
  * 
  **************************************************************************/
 
@@ -74,9 +80,9 @@
     //     |  |   |    |   +-- value of flags, or none when -1
     //     |  |   |    |   |
     //     v  v   v    v   v
-    TEST ( 0, "", "",  ~0, -1);
-    TEST (+1, "a", "", ~0, -1);
-    TEST (-1, "", "a", ~0, -1);
+    TEST ( 0, "", "",  _RWSTD_SIZE_MAX, -1);
+    TEST (+1, "a", "", _RWSTD_SIZE_MAX, -1);
+    TEST (-1, "", "a", _RWSTD_SIZE_MAX, -1);
 
     TEST ( 0, "a",    "b",    0, -1);
     TEST ( 0, "a\0b", "a\0b", 3, -1);