summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests/psxtmmutex03/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtmtests/psxtmmutex03/init.c')
-rw-r--r--testsuites/psxtmtests/psxtmmutex03/init.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/testsuites/psxtmtests/psxtmmutex03/init.c b/testsuites/psxtmtests/psxtmmutex03/init.c
index 6a29230520..9751b87e3f 100644
--- a/testsuites/psxtmtests/psxtmmutex03/init.c
+++ b/testsuites/psxtmtests/psxtmmutex03/init.c
@@ -11,6 +11,8 @@
#include "config.h"
#endif
+#define TEST_INIT
+
#include <timesys.h>
#include <rtems/btimer.h>
#include <errno.h>
@@ -93,10 +95,10 @@ void benchmark_mutex_trylock_not_available(void)
benchmark_timer_initialize();
status = pthread_mutex_trylock( &MutexId );
- /*
- * it has to return a negative value
- * because it try to lock a not available mutex
- * so the assert call is make with status instead !status
+ /*
+ * it has to return a negative value
+ * because it try to lock a not available mutex
+ * so the assert call is make with status instead !status
*/
end_time = benchmark_timer_read();
rtems_test_assert( status );
@@ -136,7 +138,7 @@ void *POSIX_Init(
int status;
TEST_BEGIN();
-
+
/*
* Create the single Mutex used in all the test case
*/
@@ -144,7 +146,7 @@ void *POSIX_Init(
rtems_test_assert( !status );
/*
- * Now invoke subroutines to time each test case
+ * Now invoke subroutines to time each test case
* get the goal depends of its order
*/
benchmark_mutex_lock_available();
@@ -154,7 +156,7 @@ void *POSIX_Init(
benchmark_mutex_unlock_no_threads_waiting();
benchmark_mutex_timedlock_available();
benchmark_mutex_unlock_no_threads_waiting();
-
+
/*
* Destroy the mutex used in the tests