[profiler] Split method_leave callback into a method_tail_call callback.
[mono.git] / eglib / test / test.c
index 02a832a404bedd75a74980ef05046707c07253a3..7c870e9c7665a3a074cf4763ca3ed33271b90716 100644 (file)
@@ -46,7 +46,6 @@
 #include "test.h"
 
 extern gint global_passed, global_tests;
-
 static gchar *last_result = NULL;
 
 gboolean 
@@ -171,8 +170,13 @@ FAILED(const gchar *format, ...)
        va_list args;
        gint n;
 
+#if !defined(HAVE_VASPRINTF) && !defined(_EGLIB_MAJOR)
+       /* We are linked against the real glib, no vasprintf */
+       g_assert_not_reached ();
+       return NULL;
+#else
        va_start(args, format);
-       n = vasprintf(&ret, format, args);
+       n = g_vasprintf(&ret, format, args);
        va_end(args);
 
        if(n == -1) {
@@ -182,6 +186,7 @@ FAILED(const gchar *format, ...)
 
        last_result = ret;
        return ret;
+#endif
 }
 
 gdouble