[amtk] testsuite: don't use gtk_test_init(), use g_test_init()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [amtk] testsuite: don't use gtk_test_init(), use g_test_init()
- Date: Tue, 29 May 2018 16:32:49 +0000 (UTC)
commit e7ce8f3e21c2dd3327a3a880805c5ae9d199a903
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue May 29 18:04:37 2018 +0200
testsuite: don't use gtk_test_init(), use g_test_init()
Using g_test_init() is fine for test-action-info-store.c, it doesn't use
GTK+.
gtk_test_init() fails in Flatpak:
(./test-action-info-store:5): dbind-WARNING **: 18:27:29.148: Couldn't
connect to accessibility bus: Failed to connect to socket
/tmp/dbus-ZhFnAWvs9F: Connection refused
testsuite/test-action-info-store.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/testsuite/test-action-info-store.c b/testsuite/test-action-info-store.c
index b146621..106b0a6 100644
--- a/testsuite/test-action-info-store.c
+++ b/testsuite/test-action-info-store.c
@@ -64,7 +64,7 @@ int
main (int argc,
char **argv)
{
- gtk_test_init (&argc, &argv);
+ g_test_init (&argc, &argv, NULL);
g_test_add_func ("/action-info-store/add-entries", test_add_entries);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]