Back to home page

LXR

 
 

    


Warning, /testsuites/psxtests/psx07/psx07.doc is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-2-Clause
0002 
0003 #  COPYRIGHT (c) 1989-2009.
0004 #  On-Line Applications Research Corporation (OAR). 
0005 #  Copyright (c) 2013 Annelies Odermann <annelies.odermann@gmail.com>.
0006 #
0007 # Redistribution and use in source and binary forms, with or without
0008 # modification, are permitted provided that the following conditions
0009 # are met:
0010 # 1. Redistributions of source code must retain the above copyright
0011 #    notice, this list of conditions and the following disclaimer.
0012 # 2. Redistributions in binary form must reproduce the above copyright
0013 #    notice, this list of conditions and the following disclaimer in the
0014 #    documentation and/or other materials provided with the distribution.
0015 #
0016 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0017 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0018 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0019 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0020 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0021 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0022 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0023 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0024 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0025 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0026 # POSSIBILITY OF SUCH DAMAGE.
0027 #
0028 This file describes the directives and concepts tested by this test set.
0029 
0030 test set name: psx07
0031 
0032 directives:
0033   pthread_attr_destroy
0034   pthread_attr_getdetachstate
0035   pthread_attr_getinheritsched
0036   pthread_attr_getschedparam
0037   pthread_attr_getschedpolicy
0038   pthread_attr_getscope
0039   pthread_attr_getstackaddr
0040   pthread_attr_getstacksize
0041   pthread_attr_init
0042   pthread_attr_setcputime
0043   pthread_attr_setdetachstate
0044   pthread_attr_setinheritsched
0045   pthread_attr_setschedparam
0046   pthread_attr_setschedpolicy
0047   pthread_attr_setscope
0048   pthread_attr_setstackaddr
0049   pthread_attr_setstacksize
0050   pthread_create
0051   pthread_getschedparam
0052   pthread_join
0053   pthread_setschedparam
0054   usleep
0055 
0056 Concepts:
0057 + Verifies that pthread_attr_init and pthread_attr_destroy work as
0058 expected with a variety of attributes, scopes, and schedulers
0059 
0060 + Ensures that pthread_create works as expected, and fails with a faulty
0061 stacksize or inherit scheduler
0062 
0063 + Verifies that pthread_attr_setstackaddr works as expected
0064 
0065 + Verifies that pthread_attr_getcputime and pthread_attr_setcputime work
0066 as expected with a variety of valid and invalid attributes and clocks
0067 
0068 + Verifies that pthread_attr_setinheritsched and
0069 pthread_attr_getinheritsched work as expected with a variety of attributes
0070 and schedules
0071 
0072 + Verifies that pthread_join works as expected
0073 
0074 + Verifies that pthead_attr_setscope and pthread_attr_getscope work as
0075 expected with a variety of attributes and scopes
0076 
0077 + Verifies that pthread_attr_setschedpolicy and pthread_attr_getschedpolcy
0078 work as expected with a variety of attributes and policies
0079 
0080 + Verifies that pthread_attr_setstacksize and pthread_attr_getstacksize
0081 work as expected with a variety of stack sizes and attributes
0082 
0083 + Verifies that pthread_attr_setstackaddr and pthread_attr_getstackaddr
0084 work as expected with a variety of attributes and stacks
0085 
0086 + Verifies that pthread_attr_setdetachstate and
0087 pthread_attr_getdetachstate work as expected with a variety of attributes
0088 and states
0089 
0090 + Verifies that pthread_attr_setschedparam and pthread_attr_getschedparam
0091 work as expected with a variety of attributes, threads, priorities,
0092 schedules, replenish periods, budgets, and policies
0093 
0094 + Verifies that usleep works as expected when executed by a child thread