Added build_time statement to provide a tm for the test

This commit is contained in:
Mark Johannes
1996-08-23 15:50:53 +00:00
parent 257adbab17
commit e2ceeca77e
2 changed files with 8 additions and 4 deletions

View File

@@ -18,6 +18,8 @@ void *POSIX_Init(
void *argument void *argument
) )
{ {
struct timespec tv;
struct timespec tr;
int status; int status;
int priority; int priority;
pthread_t thread_id; pthread_t thread_id;
@@ -25,11 +27,11 @@ void *POSIX_Init(
time_t seconds1; time_t seconds1;
time_t remaining; time_t remaining;
struct tm tm; struct tm tm;
struct timespec tv;
struct timespec tr;
puts( "\n\n*** POSIX TEST 1 ***" ); 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 */ /* error cases in clock_gettime and clock_settime */
puts( "Init: clock_gettime - EINVAL (invalid clockid)" ); puts( "Init: clock_gettime - EINVAL (invalid clockid)" );

View File

@@ -18,6 +18,8 @@ void *POSIX_Init(
void *argument void *argument
) )
{ {
struct timespec tv;
struct timespec tr;
int status; int status;
int priority; int priority;
pthread_t thread_id; pthread_t thread_id;
@@ -25,11 +27,11 @@ void *POSIX_Init(
time_t seconds1; time_t seconds1;
time_t remaining; time_t remaining;
struct tm tm; struct tm tm;
struct timespec tv;
struct timespec tr;
puts( "\n\n*** POSIX TEST 1 ***" ); 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 */ /* error cases in clock_gettime and clock_settime */
puts( "Init: clock_gettime - EINVAL (invalid clockid)" ); puts( "Init: clock_gettime - EINVAL (invalid clockid)" );