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

checker: do not allow arr1=arr2 without cloning

This commit is contained in:
Alexander Medvednikov
2020-12-20 15:33:55 +01:00
parent 583c02316a
commit 6bf21c300a
5 changed files with 8 additions and 7 deletions

View File

@ -296,7 +296,7 @@ pub fn prepare_test_session(zargs string, folder string, oskipped []string, main
mut session := new_test_session(vargs)
files := os.walk_ext(os.join_path(parent_dir, folder), '.v')
mut mains := []string{}
mut skipped := oskipped
mut skipped := oskipped.clone()
for f in files {
if !f.contains('modules') && !f.contains('preludes') {
// $if !linux {

View File

@ -42,7 +42,7 @@ fn main() {
vexe := pref.vexe_path()
vroot := os.dir(vexe)
os.chdir(vroot)
args := os.args
args := os.args.clone()
args_string := args[1..].join(' ')
cmd_prefix := args_string.all_before('test-fixed')
title := 'testing all fixed tests'