summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-desktop-1
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2015-01-16 19:01:34 +0900
committerDaiki Ueno <ueno@gnu.org>2015-01-16 19:05:22 +0900
commite6a77a185a35fd52dd80db71b120f6538a346e44 (patch)
tree8f003c499f316c0c748227f7924fcce356af977c /gettext-tools/tests/xgettext-desktop-1
parent28d7bcb5a8ed365752bc2a8ef1b10aa960f5d048 (diff)
downloadexternal_gettext-e6a77a185a35fd52dd80db71b120f6538a346e44.zip
external_gettext-e6a77a185a35fd52dd80db71b120f6538a346e44.tar.gz
external_gettext-e6a77a185a35fd52dd80db71b120f6538a346e44.tar.bz2
desktop: Avoid useless warning for group header
Reported by Marek Černocký at: <https://savannah.gnu.org/bugs/?44005> * gettext-tools/src/read-desktop.c (desktop_lex): Fix "invalid non-blank character" check after reading a group header. * gettext-tools/tests/xgettext-desktop-1: Check "invalid non-blank character" warning.
Diffstat (limited to 'gettext-tools/tests/xgettext-desktop-1')
-rwxr-xr-xgettext-tools/tests/xgettext-desktop-113
1 files changed, 13 insertions, 0 deletions
diff --git a/gettext-tools/tests/xgettext-desktop-1 b/gettext-tools/tests/xgettext-desktop-1
index ae90879..c6f9df1 100755
--- a/gettext-tools/tests/xgettext-desktop-1
+++ b/gettext-tools/tests/xgettext-desktop-1
@@ -26,6 +26,19 @@ EOF
(LANGUAGE= LC_ALL=C ${XGETTEXT} --add-comments -o - err3.desktop 2>&1; exit) | grep "invalid non-blank line" || exit 1
+cat <<\EOF >err4.desktop
+[Desktop Entry]a
+EOF
+
+(LANGUAGE= LC_ALL=C ${XGETTEXT} --add-comments -o - err4.desktop 2>&1; exit) | grep "invalid non-blank character" || exit 1
+
+# gettext 0.19.4 issued an baseless warning of this.
+cat <<\EOF >ok4.desktop
+[Desktop Entry]
+EOF
+
+(LANGUAGE= LC_ALL=C ${XGETTEXT} --add-comments -o - ok4.desktop 2>&1; exit) | grep "invalid non-blank character" && exit 1
+
cat <<\EOF > xg.desktop
[Desktop Entry]
Type=Application