test: sip: use g_assert_cmpint for asserting enums
This commit is contained in:
@@ -39,7 +39,7 @@ test_sip_provider_object (SipFixture *fixture,
|
|||||||
g_object_get (fixture->provider,
|
g_object_get (fixture->provider,
|
||||||
"sip-state", &state,
|
"sip-state", &state,
|
||||||
NULL);
|
NULL);
|
||||||
g_assert_true (state == SIP_ENGINE_READY);
|
g_assert_cmpint (state, ==, SIP_ENGINE_READY);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -102,9 +102,9 @@ test_sip_origin_objects (SipFixture *fixture,
|
|||||||
"account-state", &state_offline,
|
"account-state", &state_offline,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
g_assert_true (state_alice == SIP_ACCOUNT_ONLINE);
|
g_assert_cmpint (state_alice, ==, SIP_ACCOUNT_ONLINE);
|
||||||
g_assert_true (state_bob == SIP_ACCOUNT_ONLINE);
|
g_assert_cmpint (state_bob, ==, SIP_ACCOUNT_ONLINE);
|
||||||
g_assert_true (state_offline == SIP_ACCOUNT_OFFLINE);
|
g_assert_cmpint (state_offline, ==, SIP_ACCOUNT_OFFLINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user