3 # Test recognition of duplicates.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles mm-test2.in1 mm-test2.in2"
9 cat <<EOF > mm-test2.in1
12 msgid "2" msgstr "ha ha"
15 cat <<EOF > mm-test2.in2
21 tmpfiles
="$tmpfiles mm-test2.out"
22 : ${MSGMERGE=msgmerge}
23 LC_MESSAGES
=C LC_ALL
= \
24 ${MSGMERGE} -q mm-test2.in1 mm-test2.in2
-o /dev
/stdout \
25 2>&1 |
grep -v '^==' > mm-test2.out
27 tmpfiles
="$tmpfiles mm-test2.ok"
28 cat << EOF > mm-test2.ok
29 mm-test2.in1:3: duplicate message definition
30 mm-test2.in1:1: ...this is the location of the first definition
31 msgmerge: found 1 fatal error
35 ${DIFF} mm-test2.ok mm-test2.out