mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
windows: use CreateProcess for os.exec
This commit is contained in:

committed by
Alexander Medvednikov

parent
d57c0cfde0
commit
86447c1301
@ -82,7 +82,6 @@ pub fn main() {
|
||||
pub fn (ts mut TestSession) test() {
|
||||
ok := term.ok_message('OK')
|
||||
fail := term.fail_message('FAIL')
|
||||
cmd_needs_quoting := (os.user_os() == 'windows')
|
||||
show_stats := '-stats' in ts.vargs.split(' ')
|
||||
ts.benchmark = benchmark.new_benchmark()
|
||||
for dot_relative_file in ts.files {
|
||||
@ -93,8 +92,7 @@ pub fn (ts mut TestSession) test() {
|
||||
}
|
||||
tmpc_filepath := file.replace('.v', '.tmp.c')
|
||||
|
||||
mut cmd := '"$ts.vexe" $ts.vargs "$file"'
|
||||
if cmd_needs_quoting { cmd = '"$cmd"' }
|
||||
cmd := '"$ts.vexe" $ts.vargs "$file"'
|
||||
|
||||
ts.benchmark.step()
|
||||
if show_stats {
|
||||
|
Reference in New Issue
Block a user