summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/tests/psxtests/psx01/init.c6
-rw-r--r--testsuites/psxtests/psx01/init.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/c/src/tests/psxtests/psx01/init.c b/c/src/tests/psxtests/psx01/init.c
index 632ec15274..845cf7cc3e 100644
--- a/c/src/tests/psxtests/psx01/init.c
+++ b/c/src/tests/psxtests/psx01/init.c
@@ -18,6 +18,8 @@ void *POSIX_Init(
void *argument
)
{
+ struct timespec tv;
+ struct timespec tr;
int status;
int priority;
pthread_t thread_id;
@@ -25,11 +27,11 @@ void *POSIX_Init(
time_t seconds1;
time_t remaining;
struct tm tm;
- struct timespec tv;
- struct timespec tr;
puts( "\n\n*** POSIX TEST 1 ***" );
+ build_time( &tm, TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 );
+
/* error cases in clock_gettime and clock_settime */
puts( "Init: clock_gettime - EINVAL (invalid clockid)" );
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c
index 632ec15274..845cf7cc3e 100644
--- a/testsuites/psxtests/psx01/init.c
+++ b/testsuites/psxtests/psx01/init.c
@@ -18,6 +18,8 @@ void *POSIX_Init(
void *argument
)
{
+ struct timespec tv;
+ struct timespec tr;
int status;
int priority;
pthread_t thread_id;
@@ -25,11 +27,11 @@ void *POSIX_Init(
time_t seconds1;
time_t remaining;
struct tm tm;
- struct timespec tv;
- struct timespec tr;
puts( "\n\n*** POSIX TEST 1 ***" );
+ build_time( &tm, TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 );
+
/* error cases in clock_gettime and clock_settime */
puts( "Init: clock_gettime - EINVAL (invalid clockid)" );