diff options
author | fvogel <fvogelnew1@free.fr> | 2017-09-24 14:53:01 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-09-24 14:53:01 (GMT) |
commit | ca2de95b212fe1175ea0e1b29684c485d043b1a6 (patch) | |
tree | 85af9746031bc64441bcf05e94e745fea5acc8b7 /tests/imgPhoto.test | |
parent | 5b3d3424af288dfa4abc0ee03ac4036481892e69 (diff) | |
parent | b342e4e5c5a95c89cc56ac49ac68ab68e9475076 (diff) | |
download | tk-ca2de95b212fe1175ea0e1b29684c485d043b1a6.zip tk-ca2de95b212fe1175ea0e1b29684c485d043b1a6.tar.gz tk-ca2de95b212fe1175ea0e1b29684c485d043b1a6.tar.bz2 |
Fix [5239fd749b]: Segfault when copying a photo image to itself. Patch from Simon Bachmann.
Diffstat (limited to 'tests/imgPhoto.test')
-rw-r--r-- | tests/imgPhoto.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test index f67de84..d2b4668 100644 --- a/tests/imgPhoto.test +++ b/tests/imgPhoto.test @@ -959,6 +959,18 @@ test imgPhoto-4.75 {<photo> read command: filename starting with '-'} -constrain image delete photo1 file delete ./-teapotPhotoFile } -result {} +test imgPhoto-4.76 {ImgPhotoCmd procedure: copy to same image} -constraints { + hasTeapotPhoto +} -setup { + imageCleanup + image create photo photo1 -file $teapotPhotoFile +} -body { + # non-regression test for bug [5239fd749b] - shall just not crash + photo1 copy photo1 -to 0 0 2000 1000 + photo1 copy photo1 -subsample 2 2 -shrink +} -cleanup { + imageCleanup +} -result {} test imgPhoto-4.76 {ImgPhotoCmd, transparancy get: too many options} -setup { image create photo photo1 } -body { |