gentoo-ebuilds/media-libs/libnsgif/files/libnsgif-1.0.0-make-test-failures-fatal.patch
Matoro Mahri b461cba9e6
media-libs/libnsgif: wire up tests
Test failures are currently not fatal, so this includes a downstream
patch to change that.

Closes: https://github.com/gentoo/gentoo/pull/35142
Bug: https://bugs.gentoo.org/918642
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
2024-03-14 20:17:57 -04:00

27 lines
811 B
Diff

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