summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests/psxtmbarrier02/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtmtests/psxtmbarrier02/init.c')
-rw-r--r--testsuites/psxtmtests/psxtmbarrier02/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/psxtmtests/psxtmbarrier02/init.c b/testsuites/psxtmtests/psxtmbarrier02/init.c
index 22e9a56278..47b5a964e6 100644
--- a/testsuites/psxtmtests/psxtmbarrier02/init.c
+++ b/testsuites/psxtmtests/psxtmbarrier02/init.c
@@ -7,6 +7,10 @@
* http://www.rtems.org/license/LICENSE.
*/
+#if !defined(OPERATION_COUNT)
+#define OPERATION_COUNT 100
+#endif
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -71,7 +75,7 @@ void *Middle(
/* let other threads run */
(void) pthread_barrier_wait( &barrier );
-
+
/* should never return */
rtems_test_assert( FALSE );
return NULL;
@@ -92,7 +96,7 @@ void *POSIX_Init(
status = pthread_create( &threadId, NULL, Middle, NULL );
rtems_test_assert( !status );
}
-
+
status = pthread_create( &threadId, NULL, Low, NULL );
rtems_test_assert( !status );