diff options
author | Chris Johns <chrisj@rtems.org> | 2019-03-06 20:39:29 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-03-07 06:33:47 +1100 |
commit | 96e4b2231274429569cda56d965bcc11d8009800 (patch) | |
tree | e2cbbb277f99ed2ac864fb63fe2aed08a28b3604 /testsuites/psxtmtests/psxtmbarrier02/init.c | |
parent | testsuite: Add rexclude, rinclude and cflags to test config files. (diff) | |
download | rtems-96e4b2231274429569cda56d965bcc11d8009800.tar.bz2 |
testsuite: Make the OPERATION_COUNT a test configuration parameter.
- Add a small memory test config file.
- Update the small memory PowerPC BSPs to use the new test config.
Diffstat (limited to 'testsuites/psxtmtests/psxtmbarrier02/init.c')
-rw-r--r-- | testsuites/psxtmtests/psxtmbarrier02/init.c | 8 |
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 ); |