emergency-calls-manager: Init emergency type database
We so far did this on first access. Let's rather do it explicitly so we notice problems early on startup. Signed-off-by: Guido Günther <agx@sigxcpu.org> Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
This commit is contained in:
@@ -46,9 +46,15 @@ int
|
||||
main (int argc,
|
||||
char *argv[])
|
||||
{
|
||||
gint ret;
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
calls_emergency_call_types_init ();
|
||||
|
||||
g_test_add_func ("/Calls/EmergencyCallTypes/lookup", test_lookup);
|
||||
|
||||
return g_test_run ();
|
||||
ret = g_test_run ();
|
||||
|
||||
calls_emergency_call_types_destroy ();
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user