From f2e505d9627fb75ac9bf69d108d78e5aba77062b Mon Sep 17 00:00:00 2001 From: yuyi Date: Thu, 23 Apr 2020 20:15:15 +0800 Subject: [PATCH] tests: enable compiler_test.v on Windows --- vlib/v/tests/inout/compiler_test.v | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/vlib/v/tests/inout/compiler_test.v b/vlib/v/tests/inout/compiler_test.v index bc0f4fada0..c45be57bd2 100644 --- a/vlib/v/tests/inout/compiler_test.v +++ b/vlib/v/tests/inout/compiler_test.v @@ -2,13 +2,9 @@ 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/tests/inout') + dir := 'vlib/v/tests/inout' files := os.ls(dir) or { panic(err) } @@ -18,13 +14,13 @@ 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 { panic(err) } - x := os.exec('$vexe -o exe -cflags "-w" -cg $program') or { + _ := os.exec('$vexe -o exe -cflags "-w" -cg $program') or { panic(err) } // os.rm(program)