[glib] Add more debug spew to the mapping-test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add more debug spew to the mapping-test
- Date: Wed, 28 May 2014 10:16:37 +0000 (UTC)
commit 1e28df02642237f776f9b4f42bffd8de675af754
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 28 06:14:56 2014 -0400
Add more debug spew to the mapping-test
tests/mapping-test.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tests/mapping-test.c b/tests/mapping-test.c
index 8975bd4..e3c45b6 100644
--- a/tests/mapping-test.c
+++ b/tests/mapping-test.c
@@ -120,6 +120,8 @@ child_main (int argc, char *argv[])
g_idle_add (signal_parent, NULL);
g_main_loop_run (loop);
+ g_message ("test_child_private: received parent signal");
+
write_or_die (childname,
g_mapped_file_get_contents (map),
g_mapped_file_get_length (map));
@@ -213,6 +215,7 @@ test_child_private (gchar *argv0)
error->message);
exit (1);
}
+ g_message ("test_child_private: child spawned");
#ifndef G_OS_WIN32
loop = g_main_loop_new (NULL, FALSE);
@@ -223,6 +226,8 @@ test_child_private (gchar *argv0)
g_usleep (2000000);
#endif
+ g_message ("test_child_private: received first child signal");
+
buffer = (gchar *)g_mapped_file_get_contents (map);
buffer[0] = '1';
buffer[1] = '2';
@@ -242,6 +247,8 @@ test_child_private (gchar *argv0)
g_usleep (2000000);
#endif
+ g_message ("test_child_private: received second child signal");
+
if (!g_file_get_contents (childname, &buffer, &len, &error))
{
gchar *name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]