[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-stdcxx-commits
Subject:    svn commit: r357417 -
From:       sebor () apache ! org
Date:       2005-12-18 2:18:32
Message-ID: 20051218021833.50195.qmail () minotaur ! apache ! org
[Download RAW message or body]

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# "


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic