apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r584473 - /apr/apr/trunk/test/testlockperf.c
Date Sun, 14 Oct 2007 02:19:18 GMT
Author: wrowe
Date: Sat Oct 13 19:19:18 2007
New Revision: 584473

URL: http://svn.apache.org/viewvc?rev=584473&view=rev
Log:
Even if ignored, it's nice to have all of our tests accept
the -v[erbose] flag for consistency.

Modified:
    apr/apr/trunk/test/testlockperf.c

Modified: apr/apr/trunk/test/testlockperf.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testlockperf.c?rev=584473&r1=584472&r2=584473&view=diff
==============================================================================
--- apr/apr/trunk/test/testlockperf.c (original)
+++ apr/apr/trunk/test/testlockperf.c Sat Oct 13 19:19:18 2007
@@ -38,6 +38,7 @@
 #define MAX_COUNTER 1000000
 #define MAX_THREADS 6
 
+static verbose = 0;
 static long mutex_counter;
 
 static apr_thread_mutex_t *thread_lock;
@@ -244,7 +245,10 @@
         exit(-1);
     }
         
-    while ((rv = apr_getopt(opt, "f:", &optchar, &optarg)) == APR_SUCCESS) {
+    while ((rv = apr_getopt(opt, "vf:", &optchar, &optarg)) == APR_SUCCESS) {
+        if (optchar == 'v') {
+            verbose = 1;
+        }
         if (optchar == 'f') {
             lockname = optarg;
         }



Mime
View raw message