From 89a05a474fe1dd7d83c174b5a566725a7a1f834c Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 25 Mar 2020 21:46:46 +0100 Subject: [PATCH] valgrind tests: skip C warnings for now --- vlib/v/tests/valgrind/valgrind_test.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/v/tests/valgrind/valgrind_test.v b/vlib/v/tests/valgrind/valgrind_test.v index 8777907bb6..73a31c1625 100644 --- a/vlib/v/tests/valgrind/valgrind_test.v +++ b/vlib/v/tests/valgrind/valgrind_test.v @@ -14,15 +14,15 @@ fn test_all() { } bench_message := 'memory leak checking with valgrind' mut bench := benchmark.new_benchmark() - eprintln(term.header(bench_message,'-')) + eprintln(term.header(bench_message, '-')) vexe := os.getenv('VEXE') vroot := os.dir(vexe) - dir := os.join_path(vroot, 'vlib/v/tests/valgrind') + dir := os.join_path(vroot,'vlib/v/tests/valgrind') files := os.ls(dir) or { panic(err) } // - wrkdir := os.join_path(os.temp_dir(), 'vtests', 'valgrind') + wrkdir := os.join_path(os.temp_dir(),'vtests','valgrind') os.mkdir_all(wrkdir) os.chdir(wrkdir) // @@ -33,7 +33,7 @@ fn test_all() { full_test_path := os.real_path(test) println('x.v: $wrkdir/x.v') os.system('cp ${dir}/${test} $wrkdir/x.v') // cant run .vv file - res := os.exec('$vexe -verbose=3 -b v2 -csource keep -cg $wrkdir/x.v') or { + res := os.exec('$vexe -cflags "-w" -verbose=3 -b v2 -csource keep -cg $wrkdir/x.v') or { bench.fail() eprintln(bench.step_message_fail('valgrind $test failed')) continue