apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r584475 - /apr/apr/branches/1.2.x/test/testlockperf.c
Date Sun, 14 Oct 2007 02:22:57 GMT
Author: wrowe
Date: Sat Oct 13 19:22:57 2007
New Revision: 584475

URL: http://svn.apache.org/viewvc?rev=584475&view=rev
Log:
Here again, it would be nice if we would accept -v option
throughout our tests.

Backport: 584473

Modified:
    apr/apr/branches/1.2.x/test/testlockperf.c

Modified: apr/apr/branches/1.2.x/test/testlockperf.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/test/testlockperf.c?rev=584475&r1=584474&r2=584475&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/test/testlockperf.c (original)
+++ apr/apr/branches/1.2.x/test/testlockperf.c Sat Oct 13 19:22:57 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