tests: enable checker_error_test on windows

pull/4516/head
yuyi 2020-04-20 02:48:13 +08:00 committed by GitHub
parent 57859db07c
commit 4de16e9f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -2,13 +2,10 @@ import os
import term
fn test_all() {
$if windows {
return
}
mut total_errors := 0
vexe := os.getenv('VEXE')
vroot := os.dir(vexe)
dir := os.join_path(vroot,'vlib/v/checker/tests/inout')
//vroot := os.dir(vexe)
dir := 'vlib/v/checker/tests/inout'
files := os.ls(dir) or {
panic(err)
}
@ -18,7 +15,7 @@ fn test_all() {
assert false
}
for test in tests {
path := os.join_path(dir,test)
path := os.join_path(dir, test).replace('\\', '/')
print(test + ' ')
program := path.replace('.vv', '.v')
os.cp(path, program) or {