tests: sort the test files before further processing in valgrind_test.v

pull/13823/head
Delyan Angelov 2022-03-25 09:41:29 +02:00
parent ddc2c49365
commit 347db755c8
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ fn test_all() {
vroot := os.dir(vexe)
valgrind_test_path := 'vlib/v/tests/valgrind'
dir := os.join_path(vroot, valgrind_test_path)
files := os.ls(dir) or { panic(err) }
mut files := os.ls(dir) or { panic(err) }
files.sort()
//
wrkdir := os.join_path(os.temp_dir(), 'vtests', 'valgrind')
os.mkdir_all(wrkdir) or { panic(err) }