Convert more tests to installed tests
[platform/upstream/glib.git] / tests / unicode-encoding.c
index 5710e1f..09b3392 100644 (file)
@@ -1,3 +1,6 @@
+#undef G_DISABLE_ASSERT
+#undef G_LOG_DOMAIN
+
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -192,7 +195,7 @@ process (gint      line,
       gint n_chars;
       gchar *utf8_result;
 
-#ifdef G_OS_WIN32
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
 #define TARGET "UTF-16LE"
 #else
 #define TARGET "UTF-16"
@@ -415,5 +418,5 @@ main (int argc, char **argv)
       line++;
     }
 
-  return 0;
+  return exit_status;
 }