stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r357417 - /incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp
Date Sun, 18 Dec 2005 02:18:32 GMT
Author: sebor
Date: Sat Dec 17 18:18:29 2005
New Revision: 357417

URL: http://svn.apache.org/viewcvs?rev=357417&view=rev
Log:
2005-12-17  Martin Sebor  <sebor@roguewave.com>

	* 25.generate.cpp: Eliminated the checking of the value of the numeric
        argument, N, passed to the --nloops=N command line option, obviated by
	the implementation of restricted numeric arguments in the test driver
	in rev 357416.

Modified:
    incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp

Modified: incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp?rev=357417&r1=357416&r2=357417&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp (original)
+++ incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp Sat Dec 17 18:18:29 2005
@@ -300,10 +300,7 @@
 static int
 run_test (int, char*[])
 {
-    // check that the number of loops is non-negative
-    rw_fatal (-1 < rw_opt_nloops, 0, 0,
-              "number of loops must be non-negative, got %d",
-              rw_opt_nloops);
+    RW_ASSERT (0 <= rw_opt_nloops);
 
     const std::size_t N = std::size_t (rw_opt_nloops);
 
@@ -331,7 +328,7 @@
     return rw_test (argc, argv, __FILE__,
                     "lib.alg.generate",
                     0 /* no comment */, run_test,
-                    "|-nloops# "
+                    "|-nloops#0 "   // argument must be non-negative
                     "|-no-generate# "
                     "|-no-generate_n# "
                     "|-no-OutputIterator# "



Mime
View raw message