summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgunfmt-3
blob: ce54a8f068892a41ca02de3a48e12cf10544b899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# Test invalid or incomplete input

: ${MSGUNFMT=msgunfmt}

for n in 1 2 3 4 5 6; do
  LANGUAGE= LC_ALL=C ${MSGUNFMT} "$abs_srcdir"/overflow-$n.mo 2>mu-3.err >/dev/null
  test $? != 0 || exit 1
  grep ' is truncated' mu-3.err >/dev/null || exit 1
done