From: Bruno Haible Date: Fri, 20 Jun 2025 23:14:09 +0000 (+0200) Subject: tests: Avoid a test failure with valgrind. X-Git-Tag: v0.26~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=528364fd5dac5e87528b3fad130c3074ab31c115;p=thirdparty%2Fgettext.git tests: Avoid a test failure with valgrind. * gettext-tools/tests/xgettext-python-9: Filter out the valgrind traces. --- diff --git a/gettext-tools/tests/xgettext-python-9 b/gettext-tools/tests/xgettext-python-9 index 40a794aee..6ddeb9aaa 100755 --- a/gettext-tools/tests/xgettext-python-9 +++ b/gettext-tools/tests/xgettext-python-9 @@ -9,7 +9,8 @@ gettext ("foo %s bar") % ('a'); EOF : ${XGETTEXT=xgettext} -${XGETTEXT} --omit-header --no-location -d xg-py-9-1 xg-py-9-1.py 2>xg-py-9-1.err || Exit 1 +${XGETTEXT} --omit-header --no-location -d xg-py-9-1 xg-py-9-1.py 2>xg-py-9-1.tmp || Exit 1 +grep -v '^==' xg-py-9-1.tmp > xg-py-9-1.err # Expect no warning here (because the format string has only one placeholder). if test -s xg-py-9-1.err; then Exit 1 @@ -20,6 +21,7 @@ gettext ("foo %s and %s bar") % ('a', 'b'); EOF : ${XGETTEXT=xgettext} -${XGETTEXT} --omit-header --no-location -d xg-py-9-2 xg-py-9-2.py 2>xg-py-9-2.err || Exit 1 +${XGETTEXT} --omit-header --no-location -d xg-py-9-2 xg-py-9-2.py 2>xg-py-9-2.tmp || Exit 1 +grep -v '^==' xg-py-9-2.tmp > xg-py-9-2.err # Expect a warning here (because the format string has two placeholders). test -s xg-py-9-2.err || Exit 1