>># 
>># Copyright 1990, 1991 by the Massachusetts Institute of Technology and
>># UniSoft Group Limited.
>># 
>># Permission to use, copy, modify, distribute, and sell this software and
>># its documentation for any purpose is hereby granted without fee,
>># provided that the above copyright notice appear in all copies and that
>># both that copyright notice and this permission notice appear in
>># supporting documentation, and that the names of MIT and UniSoft not be
>># used in advertising or publicity pertaining to distribution of the
>># software without specific, written prior permission.  MIT and UniSoft
>># make no representations about the suitability of this software for any
>># purpose.  It is provided "as is" without express or implied warranty.
>># 
>># $XConsortium: stwmclntmc.m,v 1.7 92/06/11 17:31:02 rws Exp $
>># 
>>#      SCCS:  @(#)  EAll.mc Rel 1.5	    (3/12/92)
>>#      SCCS:  @(#)  EWin.mc Rel 1.4	    (7/19/91)
>>#
>>TITLE XSetWMClientMachine CH09
>>ASSERTION A XSetWMClientMachine-1
A call to XSetWMClientMachine sets the WM_CLIENT_MACHINE
property for the window w to be of data, type, format and
number of items as specified by the value field, the
encoding field, the format field, and the nitems field of
the XTextProperty structure named by the text_prop argument.
>>STRATEGY
Create a window with XCreateWindow.
Set the WM_CLIENT_MACHINE property with XSetWMClientMachine.
Verify that the call did not return False.
Obtain the WM_CLIENT_MACHINE text property using XGetTextProperty.
Verify that the encoding component of the text property is correct.
Verify that the format component of the text property is correct.
Verify that the nitems component of the text property is correct.
Verify that the value of the text property is correct using XTextPropertyToStringList.
Release the allocated memory using XFree.
>>ASSERTION B XSetWMClientMachine-2
When the server fails to allocate a required resource, then
a BadAlloc error occurs.
>>STRATEGY
Report UNTESTED
>>ASSERTION A XSetWMClientMachine-3
When the encoding component of the XTextProperty structure
named by the text_prop argument does not name a valid atom,
then a BadAtom error occurs.
>>STRATEGY
Create a window with XCreateWindow.
Create an XTextProperty structure with XStringListToTextProperty.
Set the encoding component of the structure to -1L.
Set the WM_CLIENT_MACHINE property using XSetWMClientMachine.
Verify that a BadAtom error occurred.
>>ASSERTION A XSetWMClientMachine-4
When a window argument does not name a valid Window, then a
BadWindow error occurs.
>>STRATEGY
Create a bad window by creating and destroying a window.
Call test function using bad window as the window argument.
Verify that a BadWindow error occurs.
>>ASSERTION A XSetWMClientMachine-5
When the format component of the XTextProperty structure
named by the text_prop argument is other than 8, 16 or 32,
then a BadValue error occurs.
>>STRATEGY
Create a window with XCreateWindow
Create a TextProperty structure with format {0, 1, 7, 15, 31}
with XStringListToTextProperty.
Set the WM_CLIENT_MACHINE property with XSetWMClientMachine.
Verify that a BadValue error occurs.
