summaryrefslogtreecommitdiff
path: root/media-libs/libnsgif/files/libnsgif-1.0.0-make-test-failures-fatal.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libnsgif/files/libnsgif-1.0.0-make-test-failures-fatal.patch')
-rw-r--r--media-libs/libnsgif/files/libnsgif-1.0.0-make-test-failures-fatal.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/media-libs/libnsgif/files/libnsgif-1.0.0-make-test-failures-fatal.patch b/media-libs/libnsgif/files/libnsgif-1.0.0-make-test-failures-fatal.patch
new file mode 100644
index 000000000000..3225587da399
--- /dev/null
+++ b/media-libs/libnsgif/files/libnsgif-1.0.0-make-test-failures-fatal.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/918642
+https://github.com/gentoo/gentoo/pull/35142
+
+commit 6537507d754ad049dbdc324ec6bdea8b30416d48
+Author: matoro <matoro@users.noreply.github.com>
+Date: Fri Feb 16 12:44:14 2024 -0500
+
+ test: nsgif: make failing tests fatal
+
+ Right now, failing or erroring tests is not currently considered fatal.
+ This makes any instance of either fatal.
+
+ See: https://github.com/gentoo/gentoo/pull/35142
+
+diff --git a/test/runtest.sh b/test/runtest.sh
+index fd84847..ef7274c 100755
+--- a/test/runtest.sh
++++ b/test/runtest.sh
+@@ -68,7 +68,7 @@ done
+ echo "Tests:${GIFTESTTOTC} Pass:${GIFTESTPASSC} Fail:${GIFTESTFAILC} Error:${GIFTESTERRC}"
+
+ # exit code
+-if [ "${GIFTESTERRC}" -gt 0 ]; then
++if [ "${GIFTESTERRC}" -gt 0 ] || [ "${GIFTESTFAILC}" -gt 0 ]; then
+ exit 1
+ fi
+