mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
tests: Avoid a test failure with valgrind.
* gettext-tools/tests/xgettext-python-9: Filter out the valgrind traces.
This commit is contained in:
parent
91cb1f1cbb
commit
528364fd5d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user