mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
valgrind tests: skip C warnings for now
This commit is contained in:
parent
3b4e0147cd
commit
89a05a474f
@ -14,15 +14,15 @@ fn test_all() {
|
|||||||
}
|
}
|
||||||
bench_message := 'memory leak checking with valgrind'
|
bench_message := 'memory leak checking with valgrind'
|
||||||
mut bench := benchmark.new_benchmark()
|
mut bench := benchmark.new_benchmark()
|
||||||
eprintln(term.header(bench_message,'-'))
|
eprintln(term.header(bench_message, '-'))
|
||||||
vexe := os.getenv('VEXE')
|
vexe := os.getenv('VEXE')
|
||||||
vroot := os.dir(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 {
|
files := os.ls(dir) or {
|
||||||
panic(err)
|
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.mkdir_all(wrkdir)
|
||||||
os.chdir(wrkdir)
|
os.chdir(wrkdir)
|
||||||
//
|
//
|
||||||
@ -33,7 +33,7 @@ fn test_all() {
|
|||||||
full_test_path := os.real_path(test)
|
full_test_path := os.real_path(test)
|
||||||
println('x.v: $wrkdir/x.v')
|
println('x.v: $wrkdir/x.v')
|
||||||
os.system('cp ${dir}/${test} $wrkdir/x.v') // cant run .vv file
|
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()
|
bench.fail()
|
||||||
eprintln(bench.step_message_fail('valgrind $test failed'))
|
eprintln(bench.step_message_fail('valgrind $test failed'))
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user