Avoid (some) hard-coded pathes in tests

This commit is contained in:
yangfl committed 2020-06-01 23:04:29 +08:00
1 parent 824da13977
commit e5fe988cdc
18 files changed
+594 -39

No files matched your search

+7 -4
View File
@@ -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 },
};