mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix valgrind test
This commit is contained in:
@ -4,12 +4,16 @@ import term
|
|||||||
fn test_all() {
|
fn test_all() {
|
||||||
$if !linux {
|
$if !linux {
|
||||||
println('Valgrind tests can only be run on Linux.')
|
println('Valgrind tests can only be run on Linux.')
|
||||||
exit(1)
|
exit(0)
|
||||||
}
|
}
|
||||||
exe := os.executable()
|
exe := os.executable()
|
||||||
dir := os.dir(exe)
|
dir := os.dir(exe)
|
||||||
files := os.ls('$dir/vlib/v/tests/valgrind/') or {
|
println(dir)
|
||||||
|
println(111)
|
||||||
|
// files := os.ls('$dir/vlib/v/tests/valgrind/') or {
|
||||||
|
files := os.ls(dir) or {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
println(files)
|
tests := files.filter(it.ends_with('.vv'))
|
||||||
|
println(tests)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user