summaryrefslogtreecommitdiffstats
path: root/tests/imgPhoto.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-11 11:41:13 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-11 11:41:13 (GMT)
commit462176cd5f9c252426561246fc072878488612ee (patch)
tree8c814c1b807d35e0b9286c7691840e7f4f059c63 /tests/imgPhoto.test
parentf161ad23a03baafd8a07b9214377bc63ef53c589 (diff)
parentdb94273edeb9157346a4d8711154722c2ce7841d (diff)
downloadtk-462176cd5f9c252426561246fc072878488612ee.zip
tk-462176cd5f9c252426561246fc072878488612ee.tar.gz
tk-462176cd5f9c252426561246fc072878488612ee.tar.bz2
Fix [d4fb4e80d220e46e588f310291fd7a4205e8cd67|d4fb4e80d2]: Image photo commands read/write/put do not accept "-" as first letter in file names resp. image data
Diffstat (limited to 'tests/imgPhoto.test')
-rw-r--r--tests/imgPhoto.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index 8cf1639..f9ffa94 100644
--- a/tests/imgPhoto.test
+++ b/tests/imgPhoto.test
@@ -804,6 +804,16 @@ test imgPhoto-4.74 {ImgPhotoCmd procedure: put option error handling} -setup {
} -cleanup {
image delete photo1
} -returnCodes 1 -result {wrong # args: should be "photo1 put data ?-option value ...?"}
+test imgPhoto-4.75 {<photo> read command: filename starting with '-'} -constraints {
+ hasTeapotPhoto
+} -body {
+ file copy -force $teapotPhotoFile -teapotPhotoFile
+ image create photo photo1
+ photo1 read -teapotPhotoFile
+} -cleanup {
+ image delete photo1
+ file delete ./-teapotPhotoFile
+} -result {}
test imgPhoto-5.1 {ImgPhotoGet/Free procedures, shared instances} -constraints {
hasTeapotPhoto