tests: Avoid a test failure with valgrind.

* gettext-tools/tests/xgettext-python-9: Filter out the valgrind traces.
This commit is contained in:
Bruno Haible 2025-06-21 01:14:09 +02:00
parent 91cb1f1cbb
commit 528364fd5d

View File

@ -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