Index: test/testatomic.c
===================================================================
--- test/testatomic.c	(revision 592379)
+++ test/testatomic.c	(working copy)
@@ -229,7 +229,12 @@
 volatile apr_uint32_t atomic_ops = 0;
 apr_status_t exit_ret_val = 123; /* just some made up number to check on later */
 
-#define NUM_THREADS 40
+#ifdef HPUX11
+/* default max threads is 64 and we want to create 2*NUM_THREADS */
+# define NUM_THREADS 30
+#else
+# define NUM_THREADS 40
+#endif
 #define NUM_ITERATIONS 20000
 
 void *APR_THREAD_FUNC thread_func_mutex(apr_thread_t *thd, void *data)
