Remove tree() from libite, moved to troglobit/toolbox.git instead

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-11-22 13:49:05 +01:00
1 parent 62334c80fd
commit 6608d2e8c9
7 files changed
+2 -157

No files matched your search

-1
View File
@@ -15,7 +15,6 @@ TESTS += touch
TESTS += progress
TESTS += rsync
TESTS += tempfile
TESTS += tree
TESTS += which
check_PROGRAMS = $(TESTS)
+2 -2
View File
@@ -53,9 +53,9 @@ static void check_tree(char *heading, char *dir)
if (verbose) {
if (heading)
puts(heading);
tree(dir, 1);
}
// XXX: Fixme, add code to list tree, nftw() possibly
}
int run_test(void)
-19
View File
@@ -1,19 +0,0 @@
#include "check.h"
int main(void)
{
int result = 0;
size_t i;
struct { char *path; int fail; } arr[] = {
{ "/etc/passwd", -1 },
{ "/dev", 0 },
{ "/usr/sbin", 0 },
};
for (i = 0; i < NELEMS(arr); i++) {
if (tree(arr[i].path, 1) != arr[i].fail)
result++;
}
return result;
}