diff options
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_cmd_otr.c | 6 | ||||
-rw-r--r-- | tests/unittests/test_cmd_presence.c | 18 | ||||
-rw-r--r-- | tests/unittests/test_preferences.c | 6 |
3 files changed, 15 insertions, 15 deletions
diff --git a/tests/unittests/test_cmd_otr.c b/tests/unittests/test_cmd_otr.c index b9cb52b4..4782d048 100644 --- a/tests/unittests/test_cmd_otr.c +++ b/tests/unittests/test_cmd_otr.c @@ -59,7 +59,7 @@ void cmd_otr_log_on_enables_logging(void **state) assert_true(result); assert_string_equal("on", pref_otr_log); - prefs_free_string(pref_otr_log); + g_free(pref_otr_log); } void cmd_otr_log_on_shows_warning_when_chlog_disabled(void **state) @@ -88,7 +88,7 @@ void cmd_otr_log_off_disables_logging(void **state) assert_true(result); assert_string_equal("off", pref_otr_log); - prefs_free_string(pref_otr_log); + g_free(pref_otr_log); } void cmd_otr_redact_redacts_logging(void **state) @@ -104,7 +104,7 @@ void cmd_otr_redact_redacts_logging(void **state) assert_true(result); assert_string_equal("redact", pref_otr_log); - prefs_free_string(pref_otr_log); + g_free(pref_otr_log); } void cmd_otr_log_redact_shows_warning_when_chlog_disabled(void **state) diff --git a/tests/unittests/test_cmd_presence.c b/tests/unittests/test_cmd_presence.c index 54f69826..d4bc8904 100644 --- a/tests/unittests/test_cmd_presence.c +++ b/tests/unittests/test_cmd_presence.c @@ -67,7 +67,7 @@ void cmd_presence_console_sets_all(void **state) assert_non_null(setting); assert_string_equal("all", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } void cmd_presence_console_sets_online(void **state) @@ -82,7 +82,7 @@ void cmd_presence_console_sets_online(void **state) assert_non_null(setting); assert_string_equal("online", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } void cmd_presence_console_sets_none(void **state) @@ -97,7 +97,7 @@ void cmd_presence_console_sets_none(void **state) assert_non_null(setting); assert_string_equal("none", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } void cmd_presence_chat_sets_all(void **state) @@ -112,7 +112,7 @@ void cmd_presence_chat_sets_all(void **state) assert_non_null(setting); assert_string_equal("all", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } void cmd_presence_chat_sets_online(void **state) @@ -127,7 +127,7 @@ void cmd_presence_chat_sets_online(void **state) assert_non_null(setting); assert_string_equal("online", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } void cmd_presence_chat_sets_none(void **state) @@ -142,7 +142,7 @@ void cmd_presence_chat_sets_none(void **state) assert_non_null(setting); assert_string_equal("none", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } void cmd_presence_room_sets_all(void **state) @@ -157,7 +157,7 @@ void cmd_presence_room_sets_all(void **state) assert_non_null(setting); assert_string_equal("all", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } void cmd_presence_room_sets_online(void **state) @@ -172,7 +172,7 @@ void cmd_presence_room_sets_online(void **state) assert_non_null(setting); assert_string_equal("online", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } void cmd_presence_room_sets_none(void **state) @@ -187,5 +187,5 @@ void cmd_presence_room_sets_none(void **state) assert_non_null(setting); assert_string_equal("none", setting); assert_true(result); - prefs_free_string(setting); + g_free(setting); } diff --git a/tests/unittests/test_preferences.c b/tests/unittests/test_preferences.c index 05f34ca6..5aeb266d 100644 --- a/tests/unittests/test_preferences.c +++ b/tests/unittests/test_preferences.c @@ -14,7 +14,7 @@ void statuses_console_defaults_to_all(void **state) assert_non_null(setting); assert_string_equal("all", setting); - prefs_free_string(setting); + g_free(setting); } void statuses_chat_defaults_to_all(void **state) @@ -23,7 +23,7 @@ void statuses_chat_defaults_to_all(void **state) assert_non_null(setting); assert_string_equal("all", setting); - prefs_free_string(setting); + g_free(setting); } void statuses_muc_defaults_to_all(void **state) @@ -32,5 +32,5 @@ void statuses_muc_defaults_to_all(void **state) assert_non_null(setting); assert_string_equal("all", setting); - prefs_free_string(setting); + g_free(setting); } |