diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index c004380757..52e2c3c2d6 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -37,6 +37,8 @@ pub const fail_retry_delay_ms = get_fail_retry_delay_ms() pub const is_node_present = os.execute('node --version').exit_code == 0 +pub const is_go_present = os.execute('go version').exit_code == 0 + pub const all_processes = get_all_processes() pub const header_bytes_to_search_for_module_main = 500 diff --git a/cmd/tools/vtest-self.v b/cmd/tools/vtest-self.v index 73429811fc..55f9e5ed78 100644 --- a/cmd/tools/vtest-self.v +++ b/cmd/tools/vtest-self.v @@ -336,7 +336,11 @@ fn main() { if !testing.is_node_present { testroot := vroot + os.path_separator - tsession.skip_files << test_js_files.map(it.replace(testroot, '')) + tsession.skip_files << test_js_files.map(it.replace(testroot, '').replace('\\', + '/')) + } + if !testing.is_go_present { + tsession.skip_files << 'vlib/v/gen/golang/tests/golang_test.v' } testing.find_started_process('mysqld') or { tsession.skip_files << 'vlib/db/mysql/mysql_orm_test.v' diff --git a/vlib/os/os_windows.c.v b/vlib/os/os_windows.c.v index 6e2e8f1996..8356771a38 100644 --- a/vlib/os/os_windows.c.v +++ b/vlib/os/os_windows.c.v @@ -324,7 +324,7 @@ pub fn raw_execute(cmd string) Result { lp_reserved: unsafe { nil } lp_desktop: unsafe { nil } lp_title: unsafe { nil } - cb: sizeof(C.PROCESS_INFORMATION) + cb: sizeof(StartupInfo) h_std_input: child_stdin h_std_output: child_stdout_write h_std_error: child_stdout_write diff --git a/vlib/v/gen/c/testdata/console_windows_program.vv b/vlib/v/gen/c/testdata/console_windows_program.vv index e8106a0108..b55006aeb2 100644 --- a/vlib/v/gen/c/testdata/console_windows_program.vv +++ b/vlib/v/gen/c/testdata/console_windows_program.vv @@ -1,4 +1,4 @@ -// vtest vflags: -cc msvc -os windows +// vtest vflags: -os windows @[console] fn main() { diff --git a/vlib/v/gen/c/testdata/gui_windows_program.vv b/vlib/v/gen/c/testdata/gui_windows_program.vv index d5f55ca7e6..de683ef269 100644 --- a/vlib/v/gen/c/testdata/gui_windows_program.vv +++ b/vlib/v/gen/c/testdata/gui_windows_program.vv @@ -1,4 +1,4 @@ -// vtest vflags: -cc msvc -os windows +// vtest vflags: -os windows import sokol const used_import = sokol.used_import diff --git a/vlib/v/gen/c/testdata/gui_windows_program_with_console_tag.vv b/vlib/v/gen/c/testdata/gui_windows_program_with_console_tag.vv index 91659185d3..603c4e25ff 100644 --- a/vlib/v/gen/c/testdata/gui_windows_program_with_console_tag.vv +++ b/vlib/v/gen/c/testdata/gui_windows_program_with_console_tag.vv @@ -1,4 +1,4 @@ -// vtest vflags: -cc msvc -os windows +// vtest vflags: -os windows import sokol const used_import = sokol.used_import