Try to make the testgdate test hobble along a little longer
[platform/upstream/glib.git] / tests / timeloop-basic.c
index 64d4133..56861f3 100644 (file)
@@ -1,3 +1,6 @@
+#undef G_DISABLE_ASSERT
+#undef G_LOG_DOMAIN
+
 #include <errno.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -30,8 +33,8 @@ my_pipe (int *fds)
 int
 read_all (int fd, char *buf, int len)
 {
-  int bytes_read = 0;
-  int count;
+  size_t bytes_read = 0;
+  ssize_t count;
 
   while (bytes_read < len)
     {
@@ -53,8 +56,8 @@ read_all (int fd, char *buf, int len)
 int
 write_all (int fd, char *buf, int len)
 {
-  int bytes_written = 0;
-  int count;
+  size_t bytes_written = 0;
+  ssize_t count;
 
   while (bytes_written < len)
     {