summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>2005-07-15 15:55:25 +0000
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>2005-07-15 15:55:25 +0000
commitd7a596245d24973223488d0f4d3a5cc7398625ce (patch)
tree811706920a2b9a03aaacb2618a4465e204fb8571 /test
parentcf351f8d124c97909fb963e28dd3b49f1a710371 (diff)
downloadat-spi2-core-d7a596245d24973223488d0f4d3a5cc7398625ce.tar.gz
Fix make check.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@760 e2bd861d-eb25-0410-b326-f6ed22b6b98c
Diffstat (limited to 'test')
-rw-r--r--test/test-simple.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test-simple.c b/test/test-simple.c
index b85e2a9b..78527fd6 100644
--- a/test/test-simple.c
+++ b/test/test-simple.c
@@ -691,12 +691,13 @@ key_listener_cb (const AccessibleKeystroke *stroke,
AccessibleKeystroke *s = user_data;
*s = *stroke;
+ if (stroke->keystring) s->keystring = g_strdup (stroke->keystring);
if (s->type == SPI_KEY_PRESSED)
key_press_received = TRUE;
else if (s->type == SPI_KEY_RELEASED)
key_release_received = TRUE;
-
+
return TRUE;
}
@@ -728,11 +729,11 @@ test_keylisteners (void)
g_assert (SPI_generateKeyboardEvent ('=', NULL, SPI_KEY_SYM));
while (!(key_press_received))
g_main_context_iteration (NULL, TRUE);
- fprintf (stderr, "p");
+ fprintf (stderr, "p [%s]", stroke.keystring);
g_assert (!strcmp (stroke.keystring, "="));
while (!(key_release_received))
g_main_context_iteration (NULL, TRUE);
- fprintf (stderr, "r ");
+ fprintf (stderr, "r [%s]", stroke.keystring);
key_press_received = FALSE;
key_release_received = FALSE;
}