summaryrefslogtreecommitdiff
path: root/xts5/Xlib7
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2011-08-29 21:12:42 -0700
committerAaron Plattner <aplattner@nvidia.com>2011-08-29 21:12:42 -0700
commitfd9ca573b22ec00c2c54ab49c271485c249c234d (patch)
treed3954fa1273ae3efe606e7253cf4fa2f1c5bf073 /xts5/Xlib7
parent2f7f7db37fee4098e8bb98af1f4973a83de9ceae (diff)
xts5: XCreateColormap-11: Bogus visuals return BadMatch, not BadValue
According to the X11 protocol specification, "The visual type must be one supported by the screen (or a Match error results)." It does not say anything about invalid visual IDs causing Value errors. Reported-by: Nalluri Harikrishna <nharikrishna@nvidia.com> Reported-by: Rahul Singhal <rasinghal@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Diffstat (limited to 'xts5/Xlib7')
-rw-r--r--xts5/Xlib7/XCreateColormap.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/xts5/Xlib7/XCreateColormap.m b/xts5/Xlib7/XCreateColormap.m
index 272b6f00..ec825b15 100644
--- a/xts5/Xlib7/XCreateColormap.m
+++ b/xts5/Xlib7/XCreateColormap.m
@@ -600,20 +600,20 @@ error occurs.
>>ASSERTION Bad A
When xname is called with an invalid visual,
then a
-.S BadValue
+.S BadMatch
error occurs.
>>STRATEGY
Make a visual structure invalid using badvis.
Create a colourmap for this visual with XCreateColorMap.
-Verify that a BadValue error occurred.
->>CODE BadValue
+Verify that a BadMatch error occurred.
+>>CODE BadMatch
Visual vi;
alloc = AllocNone;
badvis(&vi);
visual = &vi;
XCALL;
- if(geterr() == BadValue)
+ if(geterr() == BadMatch)
PASS;
>>ASSERTION Bad A
.ER BadWindow