mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
GSettings test: fix error match strings
The name of the internal function that appears in an assertion message has changed. Update the tests.
This commit is contained in:
parent
c4037230d4
commit
3c5b50c424
@ -1574,7 +1574,7 @@ test_enums (void)
|
||||
if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
|
||||
g_settings_set_string (settings, "test", "qux");
|
||||
g_test_trap_assert_failed ();
|
||||
g_test_trap_assert_stderr ("*g_settings_range_check*");
|
||||
g_test_trap_assert_stderr ("*g_settings_key_info_range_check*");
|
||||
|
||||
if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
|
||||
g_settings_get_flags (settings, "test");
|
||||
@ -1633,7 +1633,7 @@ test_flags (void)
|
||||
g_settings_set_strv (settings, "f-test",
|
||||
(const gchar **) g_strsplit ("rock", ",", 0));
|
||||
g_test_trap_assert_failed ();
|
||||
g_test_trap_assert_stderr ("*g_settings_range_check*");
|
||||
g_test_trap_assert_stderr ("*g_settings_key_info_range_check*");
|
||||
|
||||
if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
|
||||
g_settings_get_enum (settings, "f-test");
|
||||
@ -1692,12 +1692,12 @@ test_range (void)
|
||||
if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
|
||||
g_settings_set_int (settings, "val", 45);
|
||||
g_test_trap_assert_failed ();
|
||||
g_test_trap_assert_stderr ("*g_settings_range_check*");
|
||||
g_test_trap_assert_stderr ("*g_settings_key_info_range_check*");
|
||||
|
||||
if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDERR))
|
||||
g_settings_set_int (settings, "val", 1);
|
||||
g_test_trap_assert_failed ();
|
||||
g_test_trap_assert_stderr ("*g_settings_range_check*");
|
||||
g_test_trap_assert_stderr ("*g_settings_key_info_range_check*");
|
||||
}
|
||||
|
||||
g_assert_cmpint (g_settings_get_int (settings, "val"), ==, 33);
|
||||
|
Loading…
Reference in New Issue
Block a user