From df97c7f878f7954ad667003d3e8cc68104ed8c24 Mon Sep 17 00:00:00 2001 From: Steven Kou Date: Wed, 27 Nov 2013 10:03:39 -0500 Subject: [PATCH] psxtests: Add test document file to psx06. --- testsuites/psxtests/psx06/psx06.doc | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 testsuites/psxtests/psx06/psx06.doc diff --git a/testsuites/psxtests/psx06/psx06.doc b/testsuites/psxtests/psx06/psx06.doc new file mode 100644 index 0000000000..81dfd38884 --- /dev/null +++ b/testsuites/psxtests/psx06/psx06.doc @@ -0,0 +1,34 @@ +# testsuites/psxtests/psx06/psx06.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: psx06 + +directives: ++ pthread_key_create ++ pthread_setspecific ++ pthread_getspecific ++ pthread_key_delete + +concepts: ++ gets the ID of the current thread ++ creates 2 more threads for the 2 tasks ++ creates a key ++ attempts to create another key ++ attempts to set and get a value for the key ++ attempts to delete the key ++ sets the value of the key to 0 ++ verifies the correct value is set ++ task 1 sets the key value to 1 and verifies it before exiting ++ destructor was invoked 4 times by this stage ++ task 2 sets the key value to 2 and verifies before exiting ++ deletes the key ++ destructor was invoked 5 times in total +