about summary refs log tree commit diff stats
path: root/tests/test_cmd_statuses.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cmd_statuses.c')
-rw-r--r--tests/test_cmd_statuses.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/tests/test_cmd_statuses.c b/tests/test_cmd_statuses.c
index d3797d9c..44f5ea1e 100644
--- a/tests/test_cmd_statuses.c
+++ b/tests/test_cmd_statuses.c
@@ -1,7 +1,3 @@
-#define _XOPEN_SOURCE 600
-#include <stdio.h>
-#include <ftw.h>
-#include <unistd.h>
 #include <stdarg.h>
 #include <stddef.h>
 #include <setjmp.h>
@@ -17,42 +13,6 @@
 
 #include "command/commands.h"
 
-static int unlink_cb(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf)
-{
-    int rv = remove(fpath);
-
-    if (rv)
-        perror(fpath);
-
-    return rv;
-}
-
-static int rmrf(char *path)
-{
-    return nftw(path, unlink_cb, 64, FTW_DEPTH | FTW_PHYS);
-}
-
-void create_config_dir(void **state)
-{
-    setenv("XDG_CONFIG_HOME", "./tests/files/xdg_config_home", 1);
-    gchar *xdg_config = xdg_get_config_home();
-
-    GString *profanity_dir = g_string_new(xdg_config);
-    g_string_append(profanity_dir, "/profanity");
-
-    if (!mkdir_recursive(profanity_dir->str)) {
-        assert_true(FALSE);
-    }
-    g_string_free(profanity_dir, TRUE);
-
-    g_free(xdg_config);
-}
-
-void delete_config_dir(void **state)
-{
-   rmrf("./tests/files");
-}
-
 void cmd_statuses_shows_usage_when_bad_subcmd(void **state)
 {
     mock_cons_show();