mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-24 01:40:38 +01:00
libnm/tests: use nmtst_assert_setting_verifies() in test_setting_gsm_apn_bad_chars() test
This shows the GError in case of failure, which is useful for debugging the test.
This commit is contained in:
parent
81bfce7c47
commit
b025bd92d9
1 changed files with 2 additions and 2 deletions
|
|
@ -2643,7 +2643,7 @@ test_setting_gsm_apn_bad_chars(void)
|
|||
|
||||
/* Make sure a valid APN works */
|
||||
g_object_set(s_gsm, NM_SETTING_GSM_APN, "foobar123.-baz", NULL);
|
||||
g_assert(nm_setting_verify(NM_SETTING(s_gsm), NULL, NULL));
|
||||
nmtst_assert_setting_verifies(s_gsm);
|
||||
|
||||
/* Random invalid chars */
|
||||
g_object_set(s_gsm, NM_SETTING_GSM_APN, "@#%$@#%@#%", NULL);
|
||||
|
|
@ -2655,7 +2655,7 @@ test_setting_gsm_apn_bad_chars(void)
|
|||
|
||||
/* 0 characters long */
|
||||
g_object_set(s_gsm, NM_SETTING_GSM_APN, "", NULL);
|
||||
g_assert(nm_setting_verify(NM_SETTING(s_gsm), NULL, NULL));
|
||||
nmtst_assert_setting_verifies(s_gsm);
|
||||
|
||||
/* 65-character long */
|
||||
g_object_set(s_gsm,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue