mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-25 23:47:19 +08:00
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.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,9 +7,14 @@
|
||||
* http://www.rtems.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#if !defined(OPERATION_COUNT)
|
||||
#define OPERATION_COUNT 100
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <tmacros.h>
|
||||
#include <timesys.h>
|
||||
#include "test_support.h"
|
||||
|
||||
@@ -25,6 +25,10 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if !defined(OPERATION_COUNT)
|
||||
#define OPERATION_COUNT 100
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
@@ -25,6 +25,10 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if !defined(OPERATION_COUNT)
|
||||
#define OPERATION_COUNT 100
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
@@ -7,6 +7,10 @@
|
||||
* http://www.rtems.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#if !defined(OPERATION_COUNT)
|
||||
#define OPERATION_COUNT 100
|
||||
#endif
|
||||
|
||||
#if defined(USE_WAIT)
|
||||
#define TEST_NUMBER "08"
|
||||
#define TEST_CASE "pthread_cond_wait: blocking"
|
||||
|
||||
@@ -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
|
||||
@@ -91,7 +95,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 );
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -130,7 +134,7 @@ void *POSIX_Init(
|
||||
);
|
||||
rtems_test_assert( status == 0 );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Now start the timer which will be stopped in Low
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
@@ -93,7 +97,7 @@ void *POSIX_Init(
|
||||
status = pthread_create( &threadId, NULL, Middle, NULL );
|
||||
rtems_test_assert( status == 0 );
|
||||
}
|
||||
|
||||
|
||||
status = pthread_create( &threadId, NULL, Low, NULL );
|
||||
rtems_test_assert( status == 0 );
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -58,7 +62,7 @@ void *POSIX_Init(
|
||||
0
|
||||
);
|
||||
|
||||
|
||||
|
||||
TEST_END();
|
||||
|
||||
rtems_test_exit(0);
|
||||
|
||||
Reference in New Issue
Block a user