You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/14 04:19:18 UTC
svn commit: r584473 - /apr/apr/trunk/test/testlockperf.c
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;
}