stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r357266 - /incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp
Date Sat, 17 Dec 2005 01:06:49 GMT
Author: sebor
Date: Fri Dec 16 17:06:46 2005
New Revision: 357266

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

	* 25.generate.cpp (rw_opt_no_generate, rw_opt_no_generate_n): Added new
	command line options to disable tests exercising the corresponding
	algorithms.

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=357266&r1=357265&r2=357266&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp (original)
+++ incubator/stdcxx/trunk/tests/algorithms/25.generate.cpp Fri Dec 16 17:06:46 2005
@@ -219,6 +219,8 @@
 /**************************************************************************/
 
 /* extern */ int rw_opt_nloops = 32;     // --nloops
+/* extern */ int rw_opt_no_generate;     // --no-generate
+/* extern */ int rw_opt_no_generate_n;   // --no-generate_n
 /* extern */ int rw_opt_no_output_iter;  // --no-OutputIterator
 /* extern */ int rw_opt_no_fwd_iter;     // --no-ForwardIterator
 /* extern */ int rw_opt_no_bidir_iter;   // --no-BidirectionalIterator
@@ -305,9 +307,19 @@
 
     const std::size_t N = std::size_t (rw_opt_nloops);
 
-    test_generate (N);
+    if (rw_opt_no_generate) {
+        rw_note (0, __FILE__, __LINE__, "std::generate test disabled");
+    }
+    else {
+        test_generate (N);
+    }
 
-    test_generate_n (N);
+    if (rw_opt_no_generate_n) {
+        rw_note (0, __FILE__, __LINE__, "std::generate_n test disabled");
+    }
+    else {
+        test_generate_n (N);
+    }
 
     return 0;
 }
@@ -320,11 +332,15 @@
                     "lib.alg.generate",
                     0 /* no comment */, run_test,
                     "|-nloops# "
+                    "|-no-generate# "
+                    "|-no-generate_n# "
                     "|-no-OutputIterator# "
                     "|-no-ForwardIterator# "
                     "|-no-BidirectionalIterator# "
                     "|-no-RandomAccessIterator#",
                     &rw_opt_nloops,
+                    &rw_opt_no_generate,
+                    &rw_opt_no_generate_n,
                     &rw_opt_no_output_iter,
                     &rw_opt_no_fwd_iter,
                     &rw_opt_no_bidir_iter,



Mime
View raw message