Author: gert
Date: 2008-01-12 10:05:55 -0500 (Sat, 12 Jan 2008)
New Revision: 92743

Added:
   trunk/gert/standalone/bug353182/
   trunk/gert/standalone/bug353182/default.build
   trunk/gert/standalone/bug353182/test.cs
Log:
Added test for bug #353182.


Added: trunk/gert/standalone/bug353182/default.build
===================================================================
--- trunk/gert/standalone/bug353182/default.build       2008-01-12 14:44:35 UTC 
(rev 92742)
+++ trunk/gert/standalone/bug353182/default.build       2008-01-12 15:05:55 UTC 
(rev 92743)
@@ -0,0 +1,30 @@
+<project name="bug353182" default="rebuild">
+       <include buildfile="../../build/common.build" />
+       
+       <property name="frameworks" value="mono-2.0,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="compile" depends="init">
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <nowarn>
+                               <warning number="0219" />
+                       </nowarn>
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="run-test" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+</project>


Property changes on: trunk/gert/standalone/bug353182/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug353182/test.cs
===================================================================
--- trunk/gert/standalone/bug353182/test.cs     2008-01-12 14:44:35 UTC (rev 
92742)
+++ trunk/gert/standalone/bug353182/test.cs     2008-01-12 15:05:55 UTC (rev 
92743)
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+
+class Program
+{
+       static void Main ()
+       {
+               string file = Path.Combine 
(AppDomain.CurrentDomain.BaseDirectory, "test.cs");
+               byte[] data = File.ReadAllBytes(file);
+               /*
+               if (data == null) {
+               }*/
+
+               Dictionary<char, byte> _widths = new Dictionary<char, byte> ();
+               _widths [(char) 0] = (byte) 0;
+       }
+}


Property changes on: trunk/gert/standalone/bug353182/test.cs
___________________________________________________________________
Name: svn:eol-style
   + native

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to