mirror of
https://github.com/troglobit/libite.git
synced 2026-10-16 10:39:30 +00:00
Avoid (some) hard-coded pathes in tests
This commit is contained in:
1 parent
824da13977
commit
e5fe988cdc
18 files changed
+594
-39
No files matched your search
+7
-4
@@ -5,10 +5,13 @@ int main(void)
|
||||
{
|
||||
size_t i = 0;
|
||||
struct { char *file; int exist; } arr[] = {
|
||||
{ "/etc/passwd", 1 },
|
||||
{ "/etc/kalle", 0 },
|
||||
{ "/sbin/init", 1 },
|
||||
{ "/dev/null", 1 },
|
||||
{ "data/fexist/regular", 1 },
|
||||
{ "data/fexist/executable", 1 },
|
||||
{ "data/fexist/link", 1 },
|
||||
{ "data/fexist/nonexistence", 0 },
|
||||
{ "data/fexist/broken-link", 0 },
|
||||
{ "data/fexist/dir", 1 },
|
||||
{ "/dev/null", 1 },
|
||||
{ NULL, 0 },
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user