tests: add missing call to g_type_init()

This patches fixes the following error when testing ModemManager with
glib < 2.36, which still requires g_type_init() to be called:

TEST: test-service-generic... (pid=20166)
  /MM/Service/Generic:
(/work/ModemManager/plugins/.libs/lt-test-service-generic:20166): GLib-GObject-CRITICAL **: gtype.c:2720: You forgot to call g_type_init()
FAIL
This commit is contained in:
Ben Chan
2014-02-13 12:42:19 -08:00
committed by Aleksander Morgado
parent 50de6798b0
commit 0ce4244517

View File

@@ -76,6 +76,7 @@ test_something (TestFixture *fixture)
int main (int argc,
char *argv[])
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
TEST_ADD ("/MM/Service/Generic", test_something);