about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>2022-03-13 12:02:59 +0100
committerSteffen Jaeckel <jaeckel-floss@eyet-services.de>2022-03-14 13:17:46 +0100
commit705b6f7806bb2bab00dded8beed8c43f4190bb93 (patch)
tree448a7c897212974a8e1270f75518156a564eff8e /tests/unittests
parentb8e46552bffc559263e86b2dcc0331b3f47065b7 (diff)
downloadprofani-tty-705b6f7806bb2bab00dded8beed8c43f4190bb93.tar.gz
use `g_mkdir_with_parents()` instead of home-baked solution
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
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);
     }
 }