summaryrefslogtreecommitdiff
path: root/tests/refcount
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-08-02 06:55:38 +0000
committerTor Lillqvist <tml@src.gnome.org>2005-08-02 06:55:38 +0000
commit352a0e6c0b6a434db689114f64b2dbfa642cd948 (patch)
tree04753acfa10cfd4078016e3163b227a4ae10d8ff /tests/refcount
parent10a3867a6e88c5980e04c6a5623e1f0ae89f7116 (diff)
tests/refcount/objects.c tests/refcount/properties.c Use g_usleep()
2005-08-02 Tor Lillqvist <tml@novell.com> * tests/refcount/objects.c * tests/refcount/properties.c * tests/refcount/signals.c: Use g_usleep() instead of sleep() for portability.
Diffstat (limited to 'tests/refcount')
-rw-r--r--tests/refcount/objects.c2
-rw-r--r--tests/refcount/properties.c2
-rw-r--r--tests/refcount/signals.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/refcount/objects.c b/tests/refcount/objects.c
index 50c4bad95..1481fbff6 100644
--- a/tests/refcount/objects.c
+++ b/tests/refcount/objects.c
@@ -138,7 +138,7 @@ main (int argc, char **argv)
thread = g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL);
g_array_append_val (test_threads, thread);
}
- sleep (5);
+ g_usleep (5000000);
stopping = TRUE;
diff --git a/tests/refcount/properties.c b/tests/refcount/properties.c
index 90a30e798..18bab8c3e 100644
--- a/tests/refcount/properties.c
+++ b/tests/refcount/properties.c
@@ -228,7 +228,7 @@ main (int argc, char **argv)
thread = g_thread_create ((GThreadFunc) run_thread, test, TRUE, NULL);
g_array_append_val (test_threads, thread);
}
- sleep (3);
+ g_usleep (3000000);
stopping = TRUE;
g_print ("\nstopping\n");
diff --git a/tests/refcount/signals.c b/tests/refcount/signals.c
index 3fb43be28..6cf1afb5e 100644
--- a/tests/refcount/signals.c
+++ b/tests/refcount/signals.c
@@ -264,7 +264,7 @@ main (int argc, char **argv)
thread = g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL);
g_array_append_val (test_threads, thread);
}
- sleep (5);
+ g_usleep (5000000);
stopping = TRUE;