source: rtems/testsuites/psxtests/psxkey06/psxkey06.scn @ 9a4eca5

5
Last change on this file since 9a4eca5 was 6efa349, checked in by Sebastian Huber <sebastian.huber@…>, on 04/14/16 at 06:56:53

posix: Run key destructors during thread restart

POSIX key destructors must be called during thread restart. Just like
the POSIX cleanup handlers. This ensures that the TLS object
destructors are called during thread restart for example. It is
important for the global construction, which uses a thread restart to
run the Init task in a clean environment.

Close #2689.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1*** BEGIN OF TEST PSXKEY 6 ***
2Init - pthread key1 create - OK
3Init - pthread key2 create - OK
4Init - thread1 create - OK
5Init - thread2 create - OK
6Init - sleep - let thread run - OK
7Test_Thread 1 - key1 pthread_setspecific - OK
8Test_Thread 1 - key2 pthread_setspecific - OK
9Test_Thread 1 - sleep - let thread2 run - OK
10Test_Thread 2 - key1 pthread_setspecific - OK
11Test_Thread 2 - key2 pthread_setspecific - OK
12Test_Thread 2 - key1 pthread_getspecific - OK
13Test_Thread 2 - key2 pthread_getspecific - OK
14Test_Thread 1 - key1 pthread_getspecific - OK
15Test_Thread 1 - key2 pthread_getspecific - OK
16Init - pthread key1 delete - OK
17Init - pthread key2 delete - OK
18Init - pthread key3 create - OK
19Init - thread3 create - OK
20Init - thread3 start - OK
21Test_Thread 3 - key3 pthread_getspecific - OK
22Test_Thread 3 - key3 pthread_setspecific - OK
23Test_Thread 3 - restart self - OK
24Test_Thread 3 - key3 pthread_getspecific - OK
25Test_Thread 3 - key3 pthread_setspecific - OK
26Init - pthread key3 delete - OK
27*** END OF TEST PSXKEY 6 ***
Note: See TracBrowser for help on using the repository browser.