From 4de16e9f0fbb8c3aadf5b491b3680a2a9c5dc4a8 Mon Sep 17 00:00:00 2001 From: yuyi Date: Mon, 20 Apr 2020 02:48:13 +0800 Subject: [PATCH] tests: enable checker_error_test on windows --- vlib/v/checker/tests/inout/checker_error_test.v | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vlib/v/checker/tests/inout/checker_error_test.v b/vlib/v/checker/tests/inout/checker_error_test.v index d565f86420..5ac03c4750 100644 --- a/vlib/v/checker/tests/inout/checker_error_test.v +++ b/vlib/v/checker/tests/inout/checker_error_test.v @@ -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 {