php-imagick/imagick-fix-test316.patch
Arjen de Korte 05f282e7d6 Accepting request 1142010 from home:adkorte:branches:server:php:extensions
- Expect test to fail as the values ImageMagick will accept are limited
  by the policy.xml of the system which is more restrictive now
  + imagick-xfail-test014.patch
- Fix test failing since ImageMagick 7.1.1.24 due to changed calculation
  of kurtosis and skewness values
  + imagick-fix-test316.patch

OBS-URL: https://build.opensuse.org/request/show/1142010
OBS-URL: https://build.opensuse.org/package/show/server:php:extensions/php-imagick?expand=0&rev=14
2024-01-27 21:02:09 +00:00

20 lines
887 B
Diff

diff -purN a/tests/316_Imagick_getImageKurtosis.phpt b/tests/316_Imagick_getImageKurtosis.phpt
--- a/tests/316_Imagick_getImageKurtosis.phpt 2022-01-11 16:23:47.000000000 +0100
+++ b/tests/316_Imagick_getImageKurtosis.phpt 2024-01-22 20:29:18.738097214 +0100
@@ -14,8 +14,13 @@ function getImageKurtosis() {
$imagick = new \Imagick(__DIR__ . '/Biter_500.jpg');
$values = $imagick->getImageKurtosis();
- check_value($values, "kurtosis", -0.9379261035010518);
- check_value($values, "skewness", 0.4562517200972045);
+ if (isVersionGreaterEqual('6.9.13-2', '7.1.1-24')) {
+ check_value($values, "kurtosis", -0.7092599567492);
+ check_value($values, "skewness", 0.56839010636614);
+ } else {
+ check_value($values, "kurtosis", -0.9379261035010518);
+ check_value($values, "skewness", 0.4562517200972045);
+ }
}
getImageKurtosis() ;