mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: add os.quoted_path/1, use it consistently for running V itself
This commit is contained in:
@ -151,9 +151,9 @@ fn setup_cycles_environment() {
|
||||
fn test_live_program_can_be_compiled() {
|
||||
setup_cycles_environment()
|
||||
eprintln('Compiling...')
|
||||
os.system('$vexe -nocolor -live -o $genexe_file $source_file')
|
||||
os.system('${os.quoted_path(vexe)} -nocolor -live -o ${os.quoted_path(genexe_file)} ${os.quoted_path(source_file)}')
|
||||
//
|
||||
cmd := '$genexe_file > /dev/null &'
|
||||
cmd := '${os.quoted_path(genexe_file)} > /dev/null &'
|
||||
eprintln('Running with: $cmd')
|
||||
res := os.system(cmd)
|
||||
assert res == 0
|
||||
|
Reference in New Issue
Block a user