tests: port from g_test_trap_subprocess() to g_test_trap_fork()
[platform/upstream/glib.git] / tests / testgdateparser.c
index 1e482ff..4736379 100644 (file)
@@ -1,3 +1,9 @@
+#undef G_DISABLE_ASSERT
+#undef G_LOG_DOMAIN
+
+#ifdef GLIB_COMPILATION
+#undef GLIB_COMPILATION
+#endif
 
 #include "glib.h"
 
@@ -5,21 +11,6 @@
 #include <string.h>
 #include <locale.h>
 
-void g_date_debug_print(GDate* d)
-{
-  if (!d) g_print("NULL!\n");
-  else 
-    g_print("julian: %u (%s) DMY: %u %u %u (%s)\n",
-           d->julian_days, 
-           d->julian ? "valid" : "invalid",
-           d->day,
-           d->month,
-           d->year,
-           d->dmy ? "valid" : "invalid");
-  
-  fflush(stdout);
-}
-
 /* These only work in the POSIX locale, maybe C too - 
  * type POSIX into the program to check them
  */