#! /bin/sh

# Test invalid or incomplete input

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

tmpfiles="$tmpfiles mu-3.err"

: ${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

rm -fr $tmpfiles

exit 0
