diff options
author | fvogel <fvogelnew1@free.fr> | 2017-09-14 20:15:05 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-09-14 20:15:05 (GMT) |
commit | 691af5fcaeafaed8dad78eb9e5f2d305a277509b (patch) | |
tree | 5d3a848ec2e8a0390bfed145838d3a71f0494826 /tests | |
parent | 7b8f81b101c1711d59ed3e6cd6e2c55523a75dc5 (diff) | |
download | tk-691af5fcaeafaed8dad78eb9e5f2d305a277509b.zip tk-691af5fcaeafaed8dad78eb9e5f2d305a277509b.tar.gz tk-691af5fcaeafaed8dad78eb9e5f2d305a277509b.tar.bz2 |
Fix [5239fd749b]: Segfault when copying a photo image to itself. Patch from Simon Bachmann.
Diffstat (limited to 'tests')
-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 4bff5cc..0126ad9 100644 --- a/tests/imgPhoto.test +++ b/tests/imgPhoto.test @@ -820,6 +820,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-5.1 {ImgPhotoGet/Free procedures, shared instances} -constraints { hasTeapotPhoto |