about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-08-02 15:28:28 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-08-02 15:55:47 +0200
commit10ca3e8c315794138ac4c413aea179ea8a0e1249 (patch)
tree22c9d710cdab0433a786fff472668f70bf419cfc /tests
parent5d711639b060eb0454fee69c5f8e5ffcc27f492f (diff)
downloadprofani-tty-10ca3e8c315794138ac4c413aea179ea8a0e1249.tar.gz
Possibility to specify alternative config file
Introduce `profanity -c` to specify an alternative config file.
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/helpers.c b/tests/unittests/helpers.c
index f57bded1..e85045e6 100644
--- a/tests/unittests/helpers.c
+++ b/tests/unittests/helpers.c
@@ -45,7 +45,7 @@ void load_preferences(void **state)
     create_config_dir(state);
     FILE *f = fopen("./tests/files/xdg_config_home/profanity/profrc", "ab+");
     if (f) {
-        prefs_load();
+        prefs_load(NULL);
     }
     fclose(f);
 }