apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r587656 - in /apr/apr-util/branches/1.2.x/test: testqueue.c testreslist.c
Date Tue, 23 Oct 2007 21:18:43 GMT
Author: wrowe
Date: Tue Oct 23 14:18:42 2007
New Revision: 587656

URL: http://svn.apache.org/viewvc?rev=587656&view=rev
Log:
Fix some times.  testreslist remains mostly worthless

Modified:
    apr/apr-util/branches/1.2.x/test/testqueue.c
    apr/apr-util/branches/1.2.x/test/testreslist.c

Modified: apr/apr-util/branches/1.2.x/test/testqueue.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.2.x/test/testqueue.c?rev=587656&r1=587655&r2=587656&view=diff
==============================================================================
--- apr/apr-util/branches/1.2.x/test/testqueue.c (original)
+++ apr/apr-util/branches/1.2.x/test/testqueue.c Tue Oct 23 14:18:42 2007
@@ -28,7 +28,6 @@
 #define NUMBER_PRODUCERS    4
 #define PRODUCER_ACTIVITY   5
 #define QUEUE_SIZE          100
-#define SLEEP_TIME          30
 
 static apr_queue_t *queue;
 
@@ -117,7 +116,7 @@
         ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
     }
 
-    apr_sleep(SLEEP_TIME * 1000000); /* sleep 10 seconds */
+    apr_sleep(5000000); /* sleep 5 seconds */
 
     rv = apr_queue_term(queue);
     ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);

Modified: apr/apr-util/branches/1.2.x/test/testreslist.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.2.x/test/testreslist.c?rev=587656&r1=587655&r2=587656&view=diff
==============================================================================
--- apr/apr-util/branches/1.2.x/test/testreslist.c (original)
+++ apr/apr-util/branches/1.2.x/test/testreslist.c Tue Oct 23 14:18:42 2007
@@ -32,12 +32,12 @@
 #define RESLIST_MIN   3
 #define RESLIST_SMAX 10
 #define RESLIST_HMAX 20
-#define RESLIST_TTL  APR_TIME_C(350000) /* 35 ms */
+#define RESLIST_TTL  APR_TIME_C(35000) /* 35 ms */
 #define CONSUMER_THREADS 25
 #define CONSUMER_ITERATIONS 250
-#define CONSTRUCT_SLEEP_TIME  APR_TIME_C(250000) /* 25 ms */
-#define DESTRUCT_SLEEP_TIME   APR_TIME_C(100000) /* 10 ms */
-#define WORK_DELAY_SLEEP_TIME APR_TIME_C(150000) /* 15 ms */
+#define CONSTRUCT_SLEEP_TIME  APR_TIME_C(25000) /* 25 ms */
+#define DESTRUCT_SLEEP_TIME   APR_TIME_C(10000) /* 10 ms */
+#define WORK_DELAY_SLEEP_TIME APR_TIME_C(15000) /* 15 ms */
 
 typedef struct {
     apr_interval_time_t sleep_upon_construct;
@@ -96,7 +96,7 @@
     apr_interval_time_t work_delay_sleep;
 } my_thread_info_t;
 
-#define PERCENT95th ( ( 2u^31 / 10u ) * 19u )
+#define PERCENT95th ( ( 2u^30 / 5u ) * 19u )
 
 static void * APR_THREAD_FUNC resource_consuming_thread(apr_thread_t *thd,
                                                         void *data)



Mime
View raw message