vala-tests r35 - trunk/tests/bugs



Author: malureau
Date: Sat Oct 18 20:47:49 2008
New Revision: 35
URL: http://svn.gnome.org/viewvc/vala-tests?rev=35&view=rev

Log:
Add bug 436761 test

Added:
   trunk/tests/bugs/436761.test   (contents, props changed)
   trunk/tests/bugs/436761.vala
Modified:
   trunk/tests/bugs/update.sh

Added: trunk/tests/bugs/436761.test
==============================================================================
--- (empty file)
+++ trunk/tests/bugs/436761.test	Sat Oct 18 20:47:49 2008
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+set -e
+
+SRCDIR=../tests/bugs
+
+if [ "x$VALAC" = "x" ] ; then
+  VALAC=valac
+  SRCDIR=`dirname $0`
+fi
+
+while true ; do
+    case "$1" in
+	--interact) INTERACT=1 ; shift ;;
+	--) shift ; break ;;
+	*) break ;;
+    esac
+done
+
+TESTNAME=`basename $0 .test`
+
+  $VALAC  --pkg libxml-2.0 -o $TESTNAME $SRCDIR/$TESTNAME.vala  $VALAFLAGS
+
+if [ "$?" != "0" ] && [ -n  ]; then
+  echo ""
+  echo "*** WARNING: This vala test was expecting to fail ***"
+  echo ""
+  echo "Visit bug: http://bugzilla.gnome.org/show_bug.cgi?id=436761";
+  exit 1
+fi
+
+true || exit 1
+
+if [ "x1" = "x1" -o "x$INTERACT" = "x1" ] ; then
+  G_DEBUG=fatal_warnings ./$TESTNAME  $@
+else
+  echo ""
+  [ "x1" = "x0" ] && echo "*** WARNING: This vala test is interactive and will not be run (try --interact) ***"
+  [ "x1" = "xno" ] && rm -rf 436761.o
+fi
+

Added: trunk/tests/bugs/436761.vala
==============================================================================
--- (empty file)
+++ trunk/tests/bugs/436761.vala	Sat Oct 18 20:47:49 2008
@@ -0,0 +1,5 @@
+using Xml;
+
+static void main () {
+	NanoHTTP.cleanup ();
+}
\ No newline at end of file

Modified: trunk/tests/bugs/update.sh
==============================================================================
--- trunk/tests/bugs/update.sh	(original)
+++ trunk/tests/bugs/update.sh	Sat Oct 18 20:47:49 2008
@@ -67,6 +67,7 @@
 grep "SocketConnection" $file >/dev/null && PACKAGES="$PACKAGES --pkg gnio"
 grep "WebKit" $file >/dev/null && PACKAGES="$PACKAGES --pkg webkit-1.0"
 grep "Gee" $file >/dev/null && PACKAGES="$PACKAGES --pkg gee-1.0"
+grep "Xml" $file >/dev/null && PACKAGES="$PACKAGES --pkg libxml-2.0"
 
 RUN=1
 BANG=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]