[glib] GSettings test: fix error match strings
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GSettings test: fix error match strings
- Date: Tue, 5 Oct 2010 01:08:46 +0000 (UTC)
commit 3c5b50c4243025c9f42caac9a429291194b77be5
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Oct 4 21:07:50 2010 -0400
GSettings test: fix error match strings
The name of the internal function that appears in an assertion message
has changed. Update the tests.
gio/tests/gsettings.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index b0168a9..2f24a52 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]