From 85e411bd7c266ac18843affb92e99b4e50b4c704 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 21 Mar 2020 20:10:30 +0100 Subject: [PATCH] fix valgrind test --- vlib/v/tests/valgrind/valgrind_test.v | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vlib/v/tests/valgrind/valgrind_test.v b/vlib/v/tests/valgrind/valgrind_test.v index 9d4ecd2756..10e2c4a5dc 100644 --- a/vlib/v/tests/valgrind/valgrind_test.v +++ b/vlib/v/tests/valgrind/valgrind_test.v @@ -4,12 +4,16 @@ import term fn test_all() { $if !linux { println('Valgrind tests can only be run on Linux.') - exit(1) + exit(0) } exe := os.executable() 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) } - println(files) + tests := files.filter(it.ends_with('.vv')) + println(tests) }