diff options
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/tests/test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/boot/tests/test.c b/boot/tests/test.c index 051dbc4..9082eb3 100644 --- a/boot/tests/test.c +++ b/boot/tests/test.c @@ -488,10 +488,8 @@ tests(const ascii* base_path, const ascii* base_command, bool adjust) struct dirent* dir_entry; while ((dir_entry = readdir(dir)) != NULL) { - // skip . and .. - if (strcmp(dir_entry->d_name, ".") == 0 || strcmp(dir_entry->d_name, "..") == 0) { - continue; - } + // skip `.`, `..`, and any hidden files, these are definitely not tests. + if (dir_entry->d_name[0] == '.') continue; char test_definition_path[MAX_PATH_LENGTH]; snprintf( |
