r2200 - trunk/gettext

matthew at linuxfromscratch.org matthew at linuxfromscratch.org
Sat May 29 03:39:20 PDT 2010


Author: matthew
Date: 2010-05-29 04:39:20 -0600 (Sat, 29 May 2010)
New Revision: 2200

Added:
   trunk/gettext/gettext-0.18-skip_test-1.patch
Log:
Add a patch to skip rather than fail a Glade-related test in Gettext-0.18.

Added: trunk/gettext/gettext-0.18-skip_test-1.patch
===================================================================
--- trunk/gettext/gettext-0.18-skip_test-1.patch	                        (rev 0)
+++ trunk/gettext/gettext-0.18-skip_test-1.patch	2010-05-29 10:39:20 UTC (rev 2200)
@@ -0,0 +1,33 @@
+Submitted By:            Matt Burgess <matthew_at_linuxfromscratch_dot_org>
+Date:                    2010-05-19
+Initial Package Version: 0.18
+Upstream Status:         Submitted
+Origin:                  Matt Burgess
+Description:             Skip a glade-related test that incorrectly gets run
+                         when glade support hasn't been compiled in and
+                         subsequently fails.
+
+diff -Naur gettext-0.18.orig/gettext-tools/tests/xgettext-glade-4 gettext-0.18/gettext-tools/tests/xgettext-glade-4
+--- gettext-0.18.orig/gettext-tools/tests/xgettext-glade-4	2009-06-28 19:44:04.000000000 +0000
++++ gettext-0.18/gettext-tools/tests/xgettext-glade-4	2010-05-19 18:31:01.433048303 +0000
+@@ -5,6 +5,20 @@
+ 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-4.pot"
++: ${XGETTEXT=xgettext}
++${XGETTEXT} -o xg-gl-4.pot empty.glade 2>/dev/null
++test $? = 0 || {
++  echo "Skipping test: xgettext was built without Glade support"
++  rm -fr $tmpfiles; exit 77
++}
++
+ tmpfiles="$tmpfiles xg-gl-4.glade"
+ cat <<EOF > xg-gl-4.glade
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>




More information about the patches mailing list