Permalink
Browse files

AOT not supported on Windows, warn the user

  • Loading branch information...
1 parent cad2cb4 commit a93835169b16d453f9dfebb6384305fd61b4c0ca @migueldeicaza migueldeicaza committed Apr 24, 2012
Submodule aspnetwebstack updated 2340 files
@@ -611,8 +611,8 @@ internal class NetDrawingTest:DrawingTest {
protected override Bitmap GetReferenceImage(string testName) {
string fileName = testName.Replace(":", "_") + ".png";
try{
- if (Type.GetType ("MonoTouch.UIKit.UIImage") != null){
- return new Bitmap("/Developer/MonoTouch/Source/mono/mcs/class/System.Drawing/Test/DrawingTest/Test/" + fileName);
+ if (true){
+ return new Bitmap("/Developer/MonoTouch/Source/mono/mcs/class/System.Drawing/Test/DrawingTest/Test/PNGs/" + fileName);
} else {
_bitmap.Save( fileName );
GC.Collect();
@@ -25,9 +25,13 @@ static PDComparer()
public PDComparer()
{
}
-
+
+ static int j;
public static double Compare(Bitmap b1, Bitmap b2)
{
+ b1.Save ("/tmp/fo" + j + ".jpg");
+ b2.Save ("/tmp/so" + j + ".jpg");
+ j++;
Point [] shapePoints = GetPointFromImage(b1);
double [] pointsDistance = new double[ shapePoints.Length ];
View
@@ -238,7 +238,9 @@ typedef struct {
#define MONO_ARCH_HAVE_DECOMPOSE_LONG_OPTS 1
+#ifndef TARGET_WIN32
#define MONO_ARCH_AOT_SUPPORTED 1
+#endif
#define MONO_ARCH_ENABLE_MONITOR_IL_FASTPATH 1

0 comments on commit a938351

Please sign in to comment.