From ee4dc2fd4d5077e9b07b3e020f35ce67c72cb612 Mon Sep 17 00:00:00 2001 From: Steven Kou Date: Mon, 25 Nov 2013 11:11:06 -0500 Subject: [PATCH] psxtests: Add test document file to psx09. --- testsuites/psxtests/psx09/psx09.doc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testsuites/psxtests/psx09/psx09.doc diff --git a/testsuites/psxtests/psx09/psx09.doc b/testsuites/psxtests/psx09/psx09.doc new file mode 100644 index 0000000000..90a13f79d8 --- /dev/null +++ b/testsuites/psxtests/psx09/psx09.doc @@ -0,0 +1,25 @@ +# testsuites/psxtests/psx08/psx08.doc +# COPYRIGHT (c) 1989-2009. +# On-Line Applications Research Corporation (OAR). +# Copyright (c) 2013 Steven Kou +# +# 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. +# +This file describes the directives and concepts tested by this test set. + +test set name: psx09 + +directives: ++ pthread_getschedparam ++ pthread_setschedparam ++ pthread_mutex_lock + +concepts: ++ get the priority of the current thread ++ adjusts the priority of the thread 5 times between high and medium priority ++ creates a mutex with priority ceiling and locks it to the thread ++ thread priority no longer gets adjusted after obtaining mutex ++ thread priority gets locked at the ceiling level ++ unlocks mutex and thread priority is set to low priority successfully