mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 23:36:21 +00:00
Roll the tree back to the pre-merge tip3b673150b, undoing the upstream sync merge72f4f186d(303 files) and the 13 post-merge commits layered on top of it. Purpose: restore the last pre-sync baseline so the reported OMEMO/OTR encryption regressions can be reproduced against a known-good state and the upstream sync ruled in or out as the cause. Nothing is dropped from history; the merge and every post-merge commit remain reachable and can be cherry-picked back selectively. Baseline:3b673150bchore(chatlog): disable background message file logging (stage 1) Undoes merge:72f4f186dmerge: sync upstream profanity-im/profanity
37 lines
740 B
C
37 lines
740 B
C
#include "prof_cmocka.h"
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <glib.h>
|
|
|
|
#include "config/preferences.h"
|
|
|
|
void
|
|
statuses_console_defaults_to_all(void** state)
|
|
{
|
|
gchar* setting = prefs_get_string(PREF_STATUSES_CONSOLE);
|
|
|
|
assert_non_null(setting);
|
|
assert_string_equal("all", setting);
|
|
g_free(setting);
|
|
}
|
|
|
|
void
|
|
statuses_chat_defaults_to_all(void** state)
|
|
{
|
|
gchar* setting = prefs_get_string(PREF_STATUSES_CHAT);
|
|
|
|
assert_non_null(setting);
|
|
assert_string_equal("none", setting);
|
|
g_free(setting);
|
|
}
|
|
|
|
void
|
|
statuses_muc_defaults_to_all(void** state)
|
|
{
|
|
gchar* setting = prefs_get_string(PREF_STATUSES_MUC);
|
|
|
|
assert_non_null(setting);
|
|
assert_string_equal("none", setting);
|
|
g_free(setting);
|
|
}
|