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

compiler: fix v test v on paths with spaces

This commit is contained in:
joe-conigliaro
2019-09-07 02:30:55 +10:00
committed by Alexander Medvednikov
parent 6de1f14a56
commit b7361d00aa
2 changed files with 11 additions and 6 deletions

View File

@@ -942,7 +942,9 @@ fn test_v() {
file := os.realpath( relative_file )
tmpcfilepath := file.replace('_test.v', '_test.tmp.c')
print(relative_file + ' ')
r := os.exec('$vexe $joined_args -debug $file') or {
mut cmd := '"$vexe" $joined_args -debug "$file"'
if os.user_os() == 'windows' { cmd = '"$cmd"' }
r := os.exec(cmd) or {
failed = true
println('FAIL')
continue
@@ -961,7 +963,9 @@ fn test_v() {
file := os.realpath( relative_file )
tmpcfilepath := file.replace('.v', '.tmp.c')
print(relative_file + ' ')
r := os.exec('$vexe $joined_args -debug $file') or {
mut cmd := '"$vexe" $joined_args -debug "$file"'
if os.user_os() == 'windows' { cmd = '"$cmd"' }
r := os.exec(cmd) or {
failed = true
println('FAIL')
continue