1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: skip pico example on windows (as no windows support yet) (#3542)

This commit is contained in:
joe-conigliaro 2020-01-23 22:58:47 +11:00 committed by GitHub
parent 82da001faf
commit 9cff1e454c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,18 @@ pub fn v_build_failing(zargs string, folder string) bool {
eprintln(' v compiler args: "$vargs"') eprintln(' v compiler args: "$vargs"')
mut session := new_test_session(vargs) mut session := new_test_session(vargs)
files := os.walk_ext(filepath.join(parent_dir,folder), '.v') files := os.walk_ext(filepath.join(parent_dir,folder), '.v')
mains := files.filter(!it.contains('modules') && !it.contains('preludes')) mut mains := files.filter(!it.contains('modules') && !it.contains('preludes'))
$if windows {
// skip pico example on windows
// there was a bug using filter here
mut mains_filtered := []string
for file in mains {
if !file.ends_with('examples\\pico\\pico.v') {
mains_filtered << file
}
}
mains = mains_filtered
}
session.files << mains session.files << mains
session.test() session.test()
eprintln(session.benchmark.total_message(finish_label)) eprintln(session.benchmark.total_message(finish_label))