summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2006-03-27 15:38:38 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2006-03-27 15:38:38 (GMT)
commitb65f8a9c776090458c72ba7463f88b621c8b477c (patch)
treec9a578507c96e161cbc680215f206cb62c5d0a08 /tests
parent16ebb2581475b6f66485c656f924600868c1d53c (diff)
downloadtk-b65f8a9c776090458c72ba7463f88b621c8b477c.zip
tk-b65f8a9c776090458c72ba7463f88b621c8b477c.tar.gz
tk-b65f8a9c776090458c72ba7463f88b621c8b477c.tar.bz2
Oops, forgot that this test should return an error...
Diffstat (limited to 'tests')
-rw-r--r--tests/imgPhoto.test10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index 31fd8cc..9893e5f 100644
--- a/tests/imgPhoto.test
+++ b/tests/imgPhoto.test
@@ -9,7 +9,7 @@
#
# Author: Paul Mackerras (paulus@cs.anu.edu.au)
#
-# RCS: @(#) $Id: imgPhoto.test,v 1.23 2006/03/27 10:55:49 dkf Exp $
+# RCS: @(#) $Id: imgPhoto.test,v 1.24 2006/03/27 15:38:38 dkf Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -637,7 +637,9 @@ hciva9/Ovbv37+BzBgEEADs=
catch {file delete -force $filename}
set result
} 1
-test imgPhoto-14.2 {GIF -index handler buffer sizing} {
+test imgPhoto-14.2 {GIF -index handler buffer sizing} -setup {
+ set i [image create photo]
+} -body {
# Bug 1458234 makes this crash when trying to access buffers of the
# wrong size, caused when the initial frame is not the largest frame.
set data {
@@ -646,10 +648,10 @@ test imgPhoto-14.2 {GIF -index handler buffer sizing} {
LAMAAwAaABoAAAI0jH+gq+gfmFzQzUsr3gBybn1gIm5kaUaoubbuC8fyTNel
Ohv1CSO533u8KrgbUfc5Ci/EAgA7
}
- set i [image create photo]
$i configure -data $data -format {gif -index 2}
+} -cleanup {
image delete $i
-} {}
+} -returnCodes error -result {no image data for this index}
test imgPhoto-15.1 {photo images can fail to allocate memory gracefully} \
{nonPortable} {