From 78f5dae669f5ead46978a5f7bbe3828aaaff2258 Mon Sep 17 00:00:00 2001 From: Mark Johannes Date: Fri, 23 Aug 1996 15:55:02 +0000 Subject: Filled in the screen --- testsuites/psxtests/psx01/psx01.scn | 46 +++++++++++++++ testsuites/psxtests/psx02/psx02.scn | 26 +++++++++ testsuites/psxtests/psx03/psx03.scn | 17 ++++++ testsuites/psxtests/psx04/psx04.scn | 112 ++++++++++++++++++++++++++++++++++++ testsuites/psxtests/psx05/psx05.scn | 111 +++++++++++++++++++++++++++++++++++ testsuites/psxtests/psx06/psx06.scn | 21 +++++++ testsuites/psxtests/psx07/psx07.scn | 105 +++++++++++++++++++++++++++++++++ testsuites/psxtests/psx08/psx08.scn | 18 ++++++ testsuites/psxtests/psx09/psx09.scn | 23 ++++++++ 9 files changed, 479 insertions(+) (limited to 'testsuites/psxtests') diff --git a/testsuites/psxtests/psx01/psx01.scn b/testsuites/psxtests/psx01/psx01.scn index e69de29bb2..444c4f97bc 100644 --- a/testsuites/psxtests/psx01/psx01.scn +++ b/testsuites/psxtests/psx01/psx01.scn @@ -0,0 +1,46 @@ +*** POSIX TEST 1 *** +Init: clock_gettime - EINVAL (invalid clockid) +Init: clock_settime - EINVAL (invalid clockid) +Init: clock_getres - EINVAL (invalid clockid) +Init: clock_getres - EINVAL (NULL resolution) +Init: clock_getres - SUCCESSFUL +Init: resolution = sec (100), nsec (0) + +Fri May 24 11:05:00 1996 +Init: clock_settime - SUCCESSFUL +Fri May 24 11:05:00 1996 +Fri May 24 11:05:00 1996 +Fri May 24 11:05:03 1996 +Fri May 24 11:05:03 1996 +Init: seconds remaining (0) + +Init: nanosleep - EINVAL (NULL time) +Init: nanosleep - EAGAIN (negative seconds) +Init: nanosleep - EINVAL (too many nanoseconds) +Init: nanosleep - yield +Init: nanosleep - 3.05 seconds +Fri May 24 11:05:06 1996 +Init: sec (0), nsec (0) remaining +Init: ID is 0x0c010001 +Init: sched_get_priority_min (SCHED_FIFO) -- 1 +Init: sched_get_priority_min -- EINVAL (invalid policy) +Init: sched_get_priority_max (SCHED_FIFO) -- 255 +Init: sched_get_priority_min -- EINVAL (invalid policy) +Init: Round Robin quantum is 0 seconds, 500000000 nanoseconds +Init: pthread_create - SUCCESSFUL +Init: pthread_create - EAGAIN (too many threads) +Init: sched_yield to Task_1 +Task_1: sched_yield to Init +Init: pthread_exit + +Task_1: ID is 0x0c010002 +Task_1: pthread_equal - match case passed +Task_1: pthread_equal - different case passed +Task_1: pthread_equal - first id bad +Task_1: pthread_equal - second id bad +Task_1: pthread_once - EINVAL (NULL once_control) +Task_1: pthread_once - EINVAL (NULL init_routine) +Task_1: pthread_once - SUCCESSFUL (init_routine executes) +Test_init_routine: invoked +Task_1: pthread_once - SUCCESSFUL (init_routine does not execute) +*** END OF POSIX TEST 1 *** diff --git a/testsuites/psxtests/psx02/psx02.scn b/testsuites/psxtests/psx02/psx02.scn index e69de29bb2..3b0d373b16 100644 --- a/testsuites/psxtests/psx02/psx02.scn +++ b/testsuites/psxtests/psx02/psx02.scn @@ -0,0 +1,26 @@ +*** POSIX TEST 2 *** +Init's ID is 0x0c010001 +Signal: 16 caught by 0xc010001 (1) +Init: Block SIGUSR1 +Init: Signals pending 0x00000000 +Init: send SIGUSR1 to self +Init: Signals pending 0x00008000 +Init: Unblock SIGUSR1 +Signal: 16 caught by 0xc010001 (2) +Task1: Fri May 24 11:05:00 1996 +Signal: 16 caught by 0xc010001 (3) +Init: signal was processed with 5:0 time remaining +Task1: Fri May 24 11:05:01 1996 +Signal: 16 caught by 0xc010001 (4) +Init: signal was processed with 3:990000000 time remaining +Task1: Fri May 24 11:05:02 1996 +Signal: 16 caught by 0xc010001 (5) +Init: signal was processed with 2:980000000 time remaining +Task1: Fri May 24 11:05:03 1996 +Signal: 16 caught by 0xc010001 (6) +Init: signal was processed with 1:970000000 time remaining +Task1: Fri May 24 11:05:04 1996 +Signal: 16 caught by 0xc010001 (7) +Init: signal was processed with 0:960000000 time remaining +Init: signal was not processed with 0:0 time remaining +*** END OF POSIX TEST 2 *** diff --git a/testsuites/psxtests/psx03/psx03.scn b/testsuites/psxtests/psx03/psx03.scn index e69de29bb2..61ba36592a 100644 --- a/testsuites/psxtests/psx03/psx03.scn +++ b/testsuites/psxtests/psx03/psx03.scn @@ -0,0 +1,17 @@ +*** POSIX TEST 3 *** +Init's ID is 0x0c010001 +Init: waiting on any signal for 3 seconds. +Init: correctly timed out waiting for SIGUSR1. + +Init: Block SIGUSR2 +Init: waiting on any signal for 3 seconds. +Task_1: Fri May 24 11:05:03 1996 +Task_1: pthread_kill - SIGUSR2 to Init +Init: correctly timed out waiting for SIGUSR1. + +Init: waiting on any signal for 3 seconds. +Task_2: Fri May 24 11:05:06 1996 +Task_1: pthread_kill - SIGUSR1 to Init +Signal: 16 caught by 0xc010001 (1) +Init: received (16) SIGUSR1=16 +*** END OF POSIX TEST 3 *** diff --git a/testsuites/psxtests/psx04/psx04.scn b/testsuites/psxtests/psx04/psx04.scn index e69de29bb2..83237ec768 100644 --- a/testsuites/psxtests/psx04/psx04.scn +++ b/testsuites/psxtests/psx04/psx04.scn @@ -0,0 +1,112 @@ +*** POSIX TEST 4 *** +Init's ID is 0x0c010001 +Init: sigemptyset - set= 0x00000000 +Init: sigfillset - set= 0xffffffff +Init: sigdelset - delete SIGUSR1 set= 0xffff7fff +Init: sigismember - FALSE since SIGUSR1 is not a member +Init: sigismember - TRUE since SIGUSR2 is a member +Init: send SIGUSR1 to process +Signal: 16 caught by 0xc010001 (1) + +Init: Block SIGUSR1 +Init: send SIGUSR1 to process +Signal: 16 caught by 0xc010001 (1) + +Init: Block SIGUSR1 +Init: Signals pending 0x00000000 +Init: send SIGUSR1 to process +Init: Signals pending 0x00008000 +Init: Unblock SIGUSR1 +Signal: 16 caught by 0xc010001 (2) + +Init: create a thread interested in SIGUSR1 +Init: Block SIGUSR1 +Init: Signals pending 0x00000000 +Init: sleep so the other task can block +Task_1: sleeping for 5 seconds +Init: send SIGUSR1 to process +Init: Signals pending 0x00008000 +Init: sleep so the other task can catch signal +Signal: 16 caught by 0xc010002 (3) +Task_1: 4 seconds left +Task_1: exit + +Init: Unblock SIGALRM +Init: Firing alarm in 5 seconds +Init: 0 seconds left on previous alarm +Init: Firing alarm in 2 seconds +Init: 4 seconds left on previous alarm +Init: Wait 4 seconds for alarm +Signal: 14 caught by 0xc010001 (4) +Init: 2 seconds left in sleep + +Init: Block SIGUSR1 and SIGUSR2 only +Init: Previous blocked set was 0x00008000 +Init: Current blocked set is 0x00018000 +Init: Unblock all signals +Init: Previous blocked set was 0x00018000 + +Init: create a thread to send Init SIGUSR1 +Init: sigsuspend for any signal +Task_2: sending SIGUSR1 +Task_2: exit +Signal: 16 caught by 0xc010001 (5) +Init: awakended from sigsuspend status=00000016 + +Init: create a thread to sent Process SIGUSR1 with SA_SIGINFO +Init: sleep so the Task_3 can sigqueue SIGUSR1 +Task_3: sigqueue SIGUSR1 with value= 16 +Signal_info: 16 caught by 0xc010004 (6) si_signo= 16 si_code= 1 value= 16 + +Task_3: sigwaitinfo SIGUSR1 with value= 16 +Init: sigqueue occurred +Init: Block SIGUSR1 +Init: send SIGUSR1 to process +Init: sleep so the Task_3 can receive SIGUSR1 +Task_3: si_signo= 16 si_code= 1 value= 0 + +Task_3: sigwait SIGUSR1 +Init: Block SIGUSR1 +Init: send SIGUSR1 to process +Init: sleep so the Task_3 can receive SIGUSR1 +Task_3: signo= 16 + +Task_3: pause +Init: Block SIGUSR2 +Init: send SIGUSR2 to process +Init: sleep so the Task_3 can receive SIGUSR2 +Task_3: pause= 17 + +Task_3: sending SIGUSR2 +Task_3: sleep so the Init task can reguest a signal +Init: sigsuspend for any signal +Init: awakended from sigsuspend status=17 + +Init: sigemptyset - EINVAL (set invalid) +Init: sigfillset - EINVAL (set invalid) +Init: sigaddset - EINVAL (set invalid) +Init: sigaddset - SUCCESSFUL (signal = 0) +Init: sigaddset - EINVAL (set invalid) +Init: sigdelset - EINVAL (set invalid) +Init: sigdelset - SUCCESSFUL (signal = 0) +Init: sigdelset - EINVAL (set invalid) +Init: sigismember - EINVAL (set invalid) +Init: sigismember - SUCCESSFUL (signal = 0) +Init: sigismember - EINVAL (signal invalid) +Init: sigaction - SUCCESSFUL (signal = 0) +Init: sigaction - EINVAL (signal invalid) +Init: sigaction - EINVAL (SIGKILL) +Init: pthread_sigmask - EINVAL (set and oset invalid) +Init: pthread_sigmask - EINVAL (how invalid) +Init: sigpending - EINVAL (set invalid) +Init: pthread_sigmask - EINVAL (timout->nsec invalid < 0) +Init: pthread_sigmask - EINVAL (timout->nsec invalid to large) +Init: pthread_kill - EINVAL (sig invalid) +Init: pthread_kill - ENOSYS (signal SA_SIGINFO) +Init: pthread_kill - ESRCH (signal SA_SIGINFO) +Init: pthread_kill - SUCCESSFUL (signal = 0) +Init: pthread_kill - SUCCESSFUL (signal = SIG_IGN) +Init: kill - ESRCH (pid invalid) +Init: kill - SUCCESSFUL (signal = 0) +Init: kill - EINVAL (sig invalid) +*** END OF POSIX TEST 4 *** diff --git a/testsuites/psxtests/psx05/psx05.scn b/testsuites/psxtests/psx05/psx05.scn index e69de29bb2..8d70b10c7b 100644 --- a/testsuites/psxtests/psx05/psx05.scn +++ b/testsuites/psxtests/psx05/psx05.scn @@ -0,0 +1,111 @@ +*** POSIX TEST 5 *** +Init's ID is 0x0c010001 +Init: pthread_mutexattr_init - EINVAL (NULL attr) +Init: pthread_mutexattr_init - SUCCESSFUL +Init: mutex protocol is (0) -- PTHREAD_PRIO_NONE +Init: mutex priority ceiling is 255 +Init: mutex process shared is (0) -- PTHREAD_PROCESS_PRIVATE +Init: pthread_mutexattr_destroy - SUCCESSFUL +Init: pthread_mutexattr_destroy - EINVAL (NULL attr) +Init: pthread_mutexattr_destroy - EINVAL (not initialized) + +Init: pthread_mutexattr_getpshared - EINVAL (NULL attr) +Init: pthread_mutexattr_getpshared - EINVAL (NULL pshared) +Init: pthread_mutexattr_getpshared - EINVAL (not initialized) +Init: pthread_mutexattr_setpshared - EINVAL (NULL attr) +Init: pthread_mutexattr_setpshared - EINVAL (not initialized) + +Init: pthread_mutexattr_getprotocol - EINVAL (NULL attr) +Init: pthread_mutexattr_getprotocol - EINVAL (NULL protocol) +Init: pthread_mutexattr_getprotocol - EINVAL (not initialized) +Init: pthread_mutexattr_setprotocol - EINVAL (NULL attr) +Init: pthread_mutexattr_setprotocol - EINVAL (invalid protocol) +Init: pthread_mutexattr_setprotocol - EINVAL (not initialized) + +Init: pthread_mutexattr_getprioceiling - EINVAL (NULL attr) +Init: pthread_mutexattr_getprioceiling - EINVAL (NULL prioceiling) +Init: pthread_mutexattr_getprioceiling - EINVAL (not initialized) +Init: pthread_mutexattr_setprioceiling - EINVAL (NULL attr) +Init: pthread_mutexattr_setprioceiling - EINVAL (invalid priority) +Init: pthread_mutexattr_setprioceiling - EINVAL (not initialized) + +Init: pthread_mutex_init - EINVAL (NULL mutex_id) +Init: pthread_mutex_init - EINVAL (not initialized attr) +Init: pthread_mutex_init - EINVAL (bad protocol) +Init: pthread_mutex_init - EINVAL (bad priority ceiling) +Init: Resetting mutex attributes +Init: Changing mutex attributes +Init: mutex protocol is (1) -- PTHREAD_PRIO_INHERIT +Init: mutex priority ceiling is 128 +Init: mutex process shared is (1) -- PTHREAD_PROCESS_SHARED +Init: Resetting mutex attributes +Init: pthread_mutex_init - SUCCESSFUL +Init: pthread_mutex_init - EBUSY (attempt to initialize an existing mutex) +Init: pthread_mutex_trylock - EINVAL (illegal ID) +Init: pthread_mutex_trylock - SUCCESSFUL +Init: pthread_mutex_trylock - EDEADLK (already locked) +Init: pthread_mutex_lock - EDEADLK (already locked) +Init: Sleep 1 second +Task: pthread_mutex_trylock already locked +Task: pthread_mutex_lock unavailable +Init: pthread_mutex_unlock - EINVAL (invalid id) +Init: pthread_mutex_unlock - SUCCESSFUL +Init: pthread_mutex_unlock - EPERM (not owner) +Init: pthread_mutex_timedlock - time out in 1/2 second +Task: mutex acquired +Task: sleep for 2 seconds +Init: pthread_mutex_timedlock - EAGAIN (timeout) + +Init: pthread_mutex_init - SUCCESSFUL +Init: pthread_mutex_init - EAGAIN (too many) +Init: pthread_mutexattr_destroy - SUCCESSFUL +Init: pthread_mutex_destroy - SUCCESSFUL +Init: pthread_mutex_destroy - EINVAL (invalid id) + +Init: pthread_mutexattr_init - SUCCESSFUL +Init: pthread_mutex_init - SUCCESSFUL +Init: pthread_mutex_trylock - SUCCESSFUL +Init: pthread_mutex_destroy - EBUSY (already locked) +Init: pthread_mutex_unlock - SUCCESSFUL +Init: pthread_mutex_destroy - SUCCESSFUL + +Init: pthread_mutexattr_init - SUCCESSFUL +Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_INHERIT) +Init: pthread_mutex_init - SUCCESSFUL +Init: pthread_mutex_trylock - SUCCESSFUL +Init: pthread_setschedparam - Setting Task2 priority to highest +Task 2: pthread_mutex_lock unavailable (inherit case) +Init: pthread_getschedparam - priority = 255 +Init: pthread_mutex_unlock - SUCCESSFUL +Task 2: mutex acquired +Task 2: unlock Mutex 2 +Task 2: exit +Init: pthread_mutexattr_destroy - SUCCESSFUL +Init: pthread_mutex_destroy - SUCCESSFUL + +Init: pthread_mutexattr_init - SUCCESSFUL +Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_PROTECT) +Init: pthread_mutex_init - SUCCESSFUL +Init: pthread_mutex_getprioceiling - EINVAL (invalid id) +Init: pthread_mutex_getprioceiling - EINVAL (NULL ceiling) +Init: pthread_mutex_getprioceiling - 255 +Init: pthread_mutex_setprioceiling - EINVAL (invalid id) +Init: pthread_mutex_setprioceiling - EINVAL (illegal priority) +Init: pthread_mutex_setprioceiling - EINVAL (NULL ceiling) +Init: pthread_mutex_setprioceiling - new ceiling = 200 +Init: pthread_mutex_setprioceiling - old ceiling = 1 +Init: pthread_getschedparam - priority = 2 +Init: pthread_mutex_trylock - SUCCESSFUL +Init: pthread_getschedparam - priority = 200 +Init: pthread_setschedparam - set Task3 priority to highest +Init: Sleep 1 second +Task 3: pthread_mutex_lock unavailable (inherit case) +Init: pthread_mutex_unlock - SUCCESSFUL +Task 3: mutex acquired +Task 3: unlock Mutex 2 +Task 3: pthread_getschedparam priority = 199 +Task 3: exit +Init: pthread_mutex_getprioceiling- ceiling = 200 +Init: pthread_setschedparam - set Init priority to highest +Init: pthread_mutex_lock - EINVAL (priority ceiling violation) +*** END OF POSIX TEST 5 *** diff --git a/testsuites/psxtests/psx06/psx06.scn b/testsuites/psxtests/psx06/psx06.scn index e69de29bb2..a17fa043ee 100644 --- a/testsuites/psxtests/psx06/psx06.scn +++ b/testsuites/psxtests/psx06/psx06.scn @@ -0,0 +1,21 @@ +*** POSIX TEST 6 *** +Init's ID is 0x0c010001 + +Init: pthread_key_create - SUCCESSFUL +Destructor invoked 0 times +Init: pthread_key_create - EAGAIN (too many keys) +Init: pthread_setspecific - EINVAL (invalid key) +Init: pthread_getspecific - EINVAL (invalid key) +Init: pthread_key_delete - EINVAL (invalid key) +Init: Setting the key to 0 +Init: Got the key value of 0 +Task_1: Setting the key to 1 +Task_1: Got the key value of 1 +Task_1: exitting +Destructor invoked 4 times +Task_2: Setting the key to 2 +Task_2: Got the key value of 2 +Task2: exitting +Init: pthread_key_delete - SUCCESSFUL +Destructor invoked 5 times +*** END OF POSIX TEST 6 *** diff --git a/testsuites/psxtests/psx07/psx07.scn b/testsuites/psxtests/psx07/psx07.scn index e69de29bb2..33f5c68f6a 100644 --- a/testsuites/psxtests/psx07/psx07.scn +++ b/testsuites/psxtests/psx07/psx07.scn @@ -0,0 +1,105 @@ +*** POSIX TEST 7 *** +Init's ID is 0x0c010001 +Init: pthread_attr_init - EINVAL (NULL attr) +Init: pthread_attr_init - SUCCESSFUL +Init: initialize and destroy an attribute - SUCCESSFUL +Init: pthread_attr_destroy - EINVAL (NULL attr) +Init: pthread_attr_destroy - EINVAL (not initialized) +Init: pthread_create - EINVAL (attr not initialized) +Init: pthread_create - EINVAL (stacksize too small) +Init: pthread_create - EAGAIN (stacksize too large) +Init: pthread_create - EINVAL (invalid inherit scheduler) +Init: pthread_create - ENOTSUP (unsupported system contention scope) +Init: pthread_create - SUCCESSFUL (inherit scheduler) +Task_1: exitting + +Init: pthread_attr_setscope - EINVAL (NULL attr) +Init: pthread_attr_setscope - ENOTSUP +Init: pthread_attr_setscope - EINVAL (not initialized attr) +Init: pthread_attr_setscope - EINVAL (invalid scope) +Init: pthread_attr_setscope - SUCCESSFUL +Init: pthread_attr_getscope - EINVAL (NULL attr) +Init: pthread_attr_getscope - EINVAL (NULL scope) +Init: pthread_attr_getscope - EINVAL (not initialized attr) +Init: pthread_attr_getscope - SUCCESSFUL +Init: current scope attribute = 0 + +Init: pthread_attr_setinheritsched - EINVAL (NULL attr) +Init: pthread_attr_setinheritsched - EINVAL (not initialized attr) +Init: pthread_attr_setinheritsched - ENOTSUP (invalid inheritsched) +Init: pthread_attr_setinheritsched - SUCCESSFUL +Init: pthread_attr_getinheritsched - EINVAL (NULL attr) +Init: pthread_attr_getinheritsched - EINVAL (NULL inheritsched) +Init: pthread_attr_getinheritsched - EINVAL (not initialized attr) +Init: pthread_attr_getinheritsched - SUCCESSFUL +Init: current inherit scheduler attribute = 1 + +Init: pthread_attr_setschedpolicy - EINVAL (NULL attr) +Init: pthread_attr_setschedpolicy - EINVAL (not initialized attr) +Init: pthread_attr_setschedpolicy - ENOTSUP (invalid schedpolicy) +Init: pthread_attr_setschedpolicy - SUCCESSFUL +Init: pthread_attr_getschedpolicy - EINVAL (NULL attr) +Init: pthread_attr_getschedpolicy - EINVAL (NULL schedpolicy) +Init: pthread_attr_getschedpolicy - EINVAL (not initialized attr) +Init: pthread_attr_getschedpolicy - SUCCESSFUL +Init: current scheduler policy attribute = 2 + +Init: pthread_attr_setstacksize - EINVAL (NULL attr) +Init: pthread_attr_setstacksize - EINVAL (not initialized attr) +Init: pthread_attr_setstacksize - SUCCESSFUL (low stacksize) +Init: pthread_attr_setstacksize - SUCCESSFUL (high stacksize) +Init: pthread_attr_getstacksize - EINVAL (NULL attr) +Init: pthread_attr_getstacksize - EINVAL (NULL stacksize) +Init: pthread_attr_getstacksize - EINVAL (not initialized attr) +Init: pthread_attr_getstacksize - SUCCESSFUL +Init: current stack size attribute = 5120 + +Init: pthread_attr_setstackaddr - EINVAL (NULL attr) +Init: pthread_attr_setstackaddr - EINVAL (not initialized attr) +Init: pthread_attr_setstackaddr - SUCCESSFUL +Init: pthread_attr_getstackaddr - EINVAL (NULL attr) +Init: pthread_attr_getstackaddr - EINVAL (NULL stackaddr) +Init: pthread_attr_getstackaddr - EINVAL (not initialized attr) +Init: pthread_attr_getstackaddr - SUCCESSFUL +Init: current stack address attribute = 0x0 + +Init: pthread_attr_setdetachstate - EINVAL (NULL attr) +Init: pthread_attr_setdetachstate - EINVAL (not initialized attr) +Init: pthread_attr_setdetachstate - EINVAL (invalid detachstate) +Init: pthread_attr_setdetachstate - SUCCESSFUL +Init: pthread_attr_getdetachstate - EINVAL (NULL attr) +Init: pthread_attr_getdetachstate - EINVAL (NULL detatchstate) +Init: pthread_attr_getdetachstate - EINVAL (not initialized attr) +Init: pthread_attr_getdetachstate - SUCCESSFUL +Init: current detach state attribute = 1 + +Init: pthread_attr_getschedparam - SUCCESSFUL +Init: sched priority = 2 +Init: ss_low_priority = 0 +Init: ss_replenish_period = (0, 0) +Init: ss_initial_budget = (0, 0) +Init: pthread_attr_setschedparam - EINVAL (NULL attr) +Init: pthread_attr_setschedparam - EINVAL (not initialized attr) +Init: pthread_attr_setschedparam - EINVAL (NULL schedparam) +Init: pthread_attr_setschedparam - SUCCESSFUL +Init: pthread_attr_getschedparam - EINVAL (NULL attr) +Init: pthread_attr_getschedparam - EINVAL (not initialized attr) +Init: pthread_attr_getschedparam - EINVAL (NULL schedparam) + +Init: pthread_getschedparam - EINVAL (NULL policy) +Init: pthread_getschedparam - EINVAL (NULL schedparam) +Init: pthread_getschedparam - ESRCH (bad thread) +Init: pthread_getschedparam - SUCCESSFUL +Init: policy = 1 +Init: sched priority = 2 +Init: ss_low_priority = 0 +Init: ss_replenish_period = (0, 0) +Init: ss_initial_budget = (0, 0) + +Init: pthread_setschedparam - EINVAL (NULL schedparam) +Init: pthread_setschedparam - EINVAL (invalid priority) +Init: pthread_setschedparam - EINVAL (invalid policy) +Init: pthread_setschedparam - ESRCH (invalid thread) +Init: pthread_setschedparam - EINVAL (replenish < budget) +Init: pthread_setschedparam - EINVAL (invalid priority) +*** END OF POSIX TEST 7 *** diff --git a/testsuites/psxtests/psx08/psx08.scn b/testsuites/psxtests/psx08/psx08.scn index e69de29bb2..34c1934f59 100644 --- a/testsuites/psxtests/psx08/psx08.scn +++ b/testsuites/psxtests/psx08/psx08.scn @@ -0,0 +1,18 @@ +*** POSIX TEST 8 *** +Init's ID is 0x0c010001 +Init: pthread_detach - ESRCH (invalid id) +Init: pthread_detach self +Init: creating two tasks +Init: pthread_join - ESRCH (invalid id) +Init: pthread_join - SUCCESSFUL +Task_1: sleep 1 second +Task_2: join to Task_1 +Task_1: join to detached task (Init) -- EINVAL +Task_1: join to self task (Init) -- EDEADLK +Task_1: exitting +Init: returned from pthread_join +Init: pthread_join returned correct pointer +Init: exitting +Task_2: returned from pthread_join +Task_2: pthread_join returned correct pointer +*** END OF POSIX TEST 8 *** diff --git a/testsuites/psxtests/psx09/psx09.scn b/testsuites/psxtests/psx09/psx09.scn index e69de29bb2..afc609c456 100644 --- a/testsuites/psxtests/psx09/psx09.scn +++ b/testsuites/psxtests/psx09/psx09.scn @@ -0,0 +1,23 @@ +*** POSIX TEST 9 *** +Init's ID is 0x0c010001 +Init: pthread_getschedparam - SUCCESSFUL +Init: Fri May 24 11:05:00 1996 - current priority = 2 +Init: pthread_setschedparam - SUCCESSFUL (sporadic server) +Init: Fri May 24 11:05:00 1996 - new priority = 200 +Init: Fri May 24 11:05:00 1996 - new priority = 100 +Init: Fri May 24 11:05:00 1996 - new priority = 200 +Init: Fri May 24 11:05:00 1996 - new priority = 100 +Init: Fri May 24 11:05:01 1996 - new priority = 200 + +Init: pthread_setschedparam - SUCCESSFUL (sporadic server) +Init: Initializing mutex attributes for priority ceiling +Init: Creating a mutex +Init: Fri May 24 11:05:01 1996 - new priority = 150 +Init: Fri May 24 11:05:01 1996 - new priority = 100 +Init: pthread_mutex_lock acquire the lock +Init: Fri May 24 11:05:01 1996 - new priority = 131 +Init: Fri May 24 11:05:01 1996 - new priority = 150 +Init: unlock mutex +Init: Fri May 24 11:05:01 1996 - new priority = 150 +Init: Fri May 24 11:05:01 1996 - new priority = 100 +*** END OF POSIX TEST 9 *** -- cgit v1.2.3