mirror of
https://github.com/troglobit/libite.git
synced 2026-10-19 10:59:32 +00:00
Remove tree() from libite, moved to troglobit/toolbox.git instead
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
62334c80fd
commit
6608d2e8c9
7 files changed
+2
-157
No files matched your search
@@ -15,7 +15,6 @@ TESTS += touch
|
||||
TESTS += progress
|
||||
TESTS += rsync
|
||||
TESTS += tempfile
|
||||
TESTS += tree
|
||||
TESTS += which
|
||||
|
||||
check_PROGRAMS = $(TESTS)
|
||||
|
||||
+2
-2
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user