]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Avoid a test failure with valgrind.
authorBruno Haible <bruno@clisp.org>
Fri, 20 Jun 2025 23:14:09 +0000 (01:14 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 21 Jun 2025 00:51:44 +0000 (02:51 +0200)
* gettext-tools/tests/xgettext-python-9: Filter out the valgrind traces.

gettext-tools/tests/xgettext-python-9

index 40a794aee5bba0191b2936d72d8936ec8f47f328..6ddeb9aaa342dc0d17f636fa56ff6b30857492e3 100755 (executable)
@@ -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