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:
Guido Günther
2025-09-07 17:43:27 +02:00
committed by Marge Bot
parent f95370eddc
commit 5d751f3143
4 changed files with 33 additions and 6 deletions

View File

@@ -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;
}