From 27830e63ff84b223f0fde6d1039b18e7f9099ba7 Mon Sep 17 00:00:00 2001 From: fvogel Date: Mon, 4 Jun 2018 21:04:10 +0000 Subject: =?UTF-8?q?Test=20added=20by=20Ren=C3=A9=20Zaumseil=20for=20the=20?= =?UTF-8?q?crash=20he=20just=20fixed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/imgSVGnano.test | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/imgSVGnano.test b/tests/imgSVGnano.test index 499a36f..82ea693 100644 --- a/tests/imgSVGnano.test +++ b/tests/imgSVGnano.test @@ -45,6 +45,17 @@ test imgSVGnano-1.2 {simple image with options} -setup { rename foo "" } -result {300 300} +# test on crash found by Koen Danckaert +test imgSVGnano-1.3 {reformat image options} -setup { + catch {rename foo ""} +} -body { + image create photo foo -data $data(plus) + foo configure -format {svgnano -scale} + list {} +} -cleanup { + rename foo "" +} -result {} + test imgSVGnano-2.1 {reading a bad image} -body { image create photo foo -format svgnano -data $data(bad) } -returnCodes error -result {couldn't recognize image data} -- cgit v0.12