XGL Test Suite User's Guide
只搜尋這本書
以 PDF 格式下載這本書

System Test Descriptions

28

This chapter describes the System test programs. The following is defined for each test program:
  • Name of the test program
  • Test types (See the section "Denizen Test Types" on page 2 for the different test types.)
  • Description of the test program
  • Attributes tested by the program
  • Operators tested by the program
  • Output from the test program
· sys_open
Test Types:SM
Description:Tests that xgl_open() creates and initializes the system state object. Also checks for memory leak problems by calling xgl_open() and xgl_close() many times.
Attributes Tested: XGL_SYS_ST_ERROR_DETECTION
Operators Tested: xgl_open
                    xgl_close
                    xgl_object_get
Output:             None

· sys_attr
Test Types:SM
Description:Verifies the default values of the various system state attributes and tries setting them to some other nondefault values. Also sets the XGL_SYS_ST_ERROR_NOTIFICATION_FUNCTION to a user_defined function, and checks that it is indeed invoked when errors occur.
Attributes Tested: XGL_SYS_ST_ERROR_DETECTION
Operators Tested: xgl_object_get
Output:· sys_destroyNone
Test Types:SM, INDEX
Description:Tests that xgl_object_destroy() destroys the specified object by freeing all resources associated with the object
Attributes Tested: XGL_CMAP_COLOR_TABLE_SIZE
                    XGL_CMAP_COLOR_TABLE
                    XGL_DEV_COLOR_TYPE
                    XGL_DEV_COLOR_MAP
                    XGL_CTX_DEVICE
Operators Tested:   xgl_object_create
                    xgl_object_destroy
Output:             None

· sys_create
Test Types:SM
Description:Tests that xgl_object_create() can create all types of objects and creates the right type of objects
Attributes Tested: XGL_OBJ_TYPE
Operators Tested: xgl_object_create
Output:.....None
· sys_inquire
Test Types:SM
Description:Tests that xgl_inquire() returns reasonable values
Attributes Tested: XGL_SYS_ST_ERROR_DETECTION
Operators Tested: xgl_inquire
Output:· sys_objNone
Test Types:SM
Description:Tests that XGL_OBJ_TYPE of all types of objects are right and that XGL_OBJ_APPLICATION_DATA works correctly
Attributes Tested: XGL_OBJ_TYPE
Operators Tested: xgl_object_create
Output:.....None