1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: improved test output formatting

This commit is contained in:
Delyan Angelov
2019-12-30 06:23:54 +02:00
committed by Alexander Medvednikov
parent 4f173c8900
commit a0f32f5c29
11 changed files with 144 additions and 95 deletions

View File

@ -23,6 +23,7 @@ struct C.dirent {
fn C.readdir(voidptr) C.dirent
pub const (
args = []string
MAX_PATH = 4096
@ -972,7 +973,7 @@ pub fn walk_ext(path, ext string) []string {
continue
}
p := path + separator + file
if os.is_dir(p) {
if os.is_dir(p) && !os.is_link(p) {
res << walk_ext(p, ext)
}
else if file.ends_with(ext) {
@ -993,7 +994,7 @@ pub fn walk(path string, fnc fn(path string)) {
}
for file in files {
p := path + os.path_separator + file
if os.is_dir(p) {
if os.is_dir(p) && !os.is_link(p) {
walk(p, fnc)
}
else if os.exists(p) {