Author: sebor
Date: Wed Dec 21 19:06:16 2005
New Revision: 358460

URL: http://svn.apache.org/viewcvs?rev=358460&view=rev
Log:
2005-12-21  Martin Sebor  <[EMAIL PROTECTED]>

        * atomic_add.cpp: Passed the upper bound of the restricted numeric
        option specification as an argument instead of hardcoding it in the
        string.
        * atomic_xchg.cpp: Same.

Modified:
    incubator/stdcxx/trunk/tests/support/atomic_add.cpp
    incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp

Modified: incubator/stdcxx/trunk/tests/support/atomic_add.cpp
URL: 
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/support/atomic_add.cpp?rev=358460&r1=358459&r2=358460&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/support/atomic_add.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/atomic_add.cpp Wed Dec 21 19:06:16 2005
@@ -365,9 +365,11 @@
 {
     return rw_test (argc, argv, __FILE__,
                     0 /* no clause */,
-                    0 /* no comment */, run_test,
+                    0 /* no comment */,
+                    run_test,
                     "|-nloops#0 "        // must be non-negative
-                    "|-nthreads#0-32",   // must be between 0 and 32
+                    "|-nthreads#0-*" ,   // must be in [0, MAX_THREADS]
                     &rw_opt_nloops,
+                    int (MAX_THREADS),
                     &rw_opt_nthreads);
 }

Modified: incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp
URL: 
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp?rev=358460&r1=358459&r2=358460&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp Wed Dec 21 19:06:16 
2005
@@ -349,7 +349,8 @@
                     0 /* no clause */,
                     0 /* no comment */, run_test,
                     "|-nloops#0 "        // must be non-negative
-                    "|-nthreads#0-32",   // must be between 0 and 32
+                    "|-nthreads#0-*",    // must be in [0, MAX_THREADS]
                     &rw_opt_nloops,
+                    int (MAX_THREADS),
                     &rw_opt_nthreads);
 }


Reply via email to