summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/include
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/include')
-rw-r--r--testsuites/psxtests/include/pmacros.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/testsuites/psxtests/include/pmacros.h b/testsuites/psxtests/include/pmacros.h
index ceb2906214..be9f35c8e5 100644
--- a/testsuites/psxtests/include/pmacros.h
+++ b/testsuites/psxtests/include/pmacros.h
@@ -1,4 +1,11 @@
/*
+ * COPYRIGHT (c) 1989-2009.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
* $Id$
*/
@@ -9,7 +16,6 @@
#include <bsp.h>
#endif
#include <pthread.h>
-#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
@@ -64,10 +70,10 @@
\
tv.tv_sec = mktime( &tm ); \
tv.tv_nsec = 0; \
- assert( tv.tv_sec != -1 ); \
+ rtems_test_assert( tv.tv_sec != -1 ); \
\
status = clock_settime( CLOCK_REALTIME, &tv ); \
- assert( !status ); \
+ rtems_test_assert( !status ); \
} while ( 0 )
#define print_current_time(s1, s2) \
@@ -77,7 +83,7 @@
struct timespec _tv; \
\
_status = clock_gettime( CLOCK_REALTIME, &_tv ); \
- assert( !_status ); \
+ rtems_test_assert( !_status ); \
\
(void) ctime_r( &_tv.tv_sec, _time_buffer ); \
_time_buffer[ strlen( _time_buffer ) - 1 ] = 0; \