os: fix sporadic failing glob_test.v

pull/10890/head
Delyan Angelov 2021-07-22 13:26:23 +03:00
parent 9315154201
commit ec585b4a54
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 5 additions and 5 deletions

View File

@ -41,15 +41,15 @@ fn test_glob_can_find_v_files_3_levels_deep() ? {
fn test_glob_can_find_files_in_current_folder() ? {
os.chdir(@VMODROOT)
matches := os.glob('*') ?
assert '.gitignore' in matches
assert 'make.bat' in matches
assert 'Makefile' in matches
assert 'Dockerfile' in matches
assert 'README.md' in matches
assert 'v.mod' in matches
assert 'cmd/' in matches
assert 'vlib/' in matches
for f in matches {
if !f.ends_with(os.path_separator) {
assert !f.ends_with('.v')
}
}
assert 'thirdparty/' in matches
}
fn test_glob_can_be_used_with_multiple_patterns() ? {