1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-05 19:15:32 +00:00

test: sip: use g_assert_cmpint for asserting enums

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-04-17 15:02:21 +02:00
parent 2ee6b23475
commit 42c1ba7bba

View file

@ -39,7 +39,7 @@ test_sip_provider_object (SipFixture *fixture,
g_object_get (fixture->provider,
"sip-state", &state,
NULL);
g_assert_true (state == SIP_ENGINE_READY);
g_assert_cmpint (state, ==, SIP_ENGINE_READY);
}
static void
@ -102,9 +102,9 @@ test_sip_origin_objects (SipFixture *fixture,
"account-state", &state_offline,
NULL);
g_assert_true (state_alice == SIP_ACCOUNT_ONLINE);
g_assert_true (state_bob == SIP_ACCOUNT_ONLINE);
g_assert_true (state_offline == SIP_ACCOUNT_OFFLINE);
g_assert_cmpint (state_alice, ==, SIP_ACCOUNT_ONLINE);
g_assert_cmpint (state_bob, ==, SIP_ACCOUNT_ONLINE);
g_assert_cmpint (state_offline, ==, SIP_ACCOUNT_OFFLINE);
}
static void