]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a test failure. Consistent with xgettext-glade-[12].
authorBruno Haible <bruno@clisp.org>
Tue, 2 Dec 2003 20:51:38 +0000 (20:51 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:27 +0000 (12:11 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/xgettext-glade-3

index b9df994ff0ecc444ec44a4b1970cb5d2f97c95c3..f0dd85555d7d71d5911304088d4051c70d23d40a 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-02  Bruno Haible  <bruno@clisp.org>
+
+       * xgettext-glade-3: Skip the test if expat is not available.
+       Reported by Jouko Orava <joorava@pcu.helsinki.fi>.
+
 2003-11-30  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.13 released.
index 0a1521f592cff9e43fa03e853ff881c2b516b296..a231cc331c4534f6f354b656d85f41ca5ddc5f49 100755 (executable)
@@ -5,6 +5,17 @@
 tmpfiles=""
 trap 'rm -fr $tmpfiles' 1 2 3 15
 
+tmpfiles="$tmpfiles empty.glade"
+cat <<EOF > empty.glade
+<?xml version="1.0"?>
+<GTK-Interface/>
+EOF
+
+tmpfiles="$tmpfiles xg-gl-3.pot"
+: ${XGETTEXT=xgettext}
+${XGETTEXT} -o xg-gl-3.pot empty.glade 2>/dev/null
+test $? = 0 || { rm -fr $tmpfiles; exit 77; }
+
 tmpfiles="$tmpfiles asciitable.glade2"
 cat <<EOF > asciitable.glade2
 <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->