about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-03-14 16:02:09 +0100
committerGitHub <noreply@github.com>2022-03-14 16:02:09 +0100
commit4e95641014c3c81393390c38fcda2a7de0f3ba35 (patch)
treea033f3cfae5af5516a5da0b5e679626e762263e7 /tests/unittests
parent9eee52d14caba9343c568390674d5cecc1a4d863 (diff)
parent8c55294352fd8f15a2e2f7ca4e8972d85b7f4b32 (diff)
downloadprofani-tty-4e95641014c3c81393390c38fcda2a7de0f3ba35.tar.gz
Merge pull request #1648 from profanity-im/refactor-editor
Refactor editor & some other parts
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/helpers.c b/tests/unittests/helpers.c
index e309b559..bc4f8db3 100644
--- a/tests/unittests/helpers.c
+++ b/tests/unittests/helpers.c
@@ -16,7 +16,7 @@ void
 create_config_dir(void** state)
 {
     setenv("XDG_CONFIG_HOME", "./tests/files/xdg_config_home", 1);
-    if (!mkdir_recursive("./tests/files/xdg_config_home/profanity")) {
+    if (!create_dir("./tests/files/xdg_config_home/profanity")) {
         assert_true(FALSE);
     }
 }
@@ -32,7 +32,7 @@ void
 create_data_dir(void** state)
 {
     setenv("XDG_DATA_HOME", "./tests/files/xdg_data_home", 1);
-    if (!mkdir_recursive("./tests/files/xdg_data_home/profanity")) {
+    if (!create_dir("./tests/files/xdg_data_home/profanity")) {
         assert_true(FALSE);
     }
 }