From b3ee30438106cd0f595d57974b5efa2332d3b4ff Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 27 Sep 2023 12:31:33 +0300 Subject: [PATCH] tests: skip testing `v -os windows -experimental -b native -o hw.exe examples/hello_world.v` on !windows --- cmd/tools/vtest-all.v | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/tools/vtest-all.v b/cmd/tools/vtest-all.v index e7afe40487..13d368480a 100644 --- a/cmd/tools/vtest-all.v +++ b/cmd/tools/vtest-all.v @@ -168,10 +168,12 @@ fn get_all_commands() []Command { okmsg: 'V compiles hello_world.v on the native backend for macos' rmfile: 'hw.macos' } - res << Command{ - line: '${vexe} -os windows -experimental -b native -o hw.exe examples/hello_world.v' - okmsg: 'V compiles hello_world.v on the native backend for windows' - rmfile: 'hw.exe' + $if windows { + res << Command{ + line: '${vexe} -os windows -experimental -b native -o hw.exe examples/hello_world.v' + okmsg: 'V compiles hello_world.v on the native backend for windows' + rmfile: 'hw.exe' + } } // res << Command{