From 5786dd84e646bc4dad8c6f36742d596a80e8db6e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 28 Nov 2021 18:36:05 +0200 Subject: [PATCH] tests: add a new `import_x_json2.v` skipped valgrind test --- vlib/v/tests/valgrind/import_x_json2.v | 6 ++++++ vlib/v/tests/valgrind/valgrind_test.v | 1 + 2 files changed, 7 insertions(+) create mode 100644 vlib/v/tests/valgrind/import_x_json2.v diff --git a/vlib/v/tests/valgrind/import_x_json2.v b/vlib/v/tests/valgrind/import_x_json2.v new file mode 100644 index 0000000000..48576682c5 --- /dev/null +++ b/vlib/v/tests/valgrind/import_x_json2.v @@ -0,0 +1,6 @@ +import x.json2 + +fn main() { + x := '[[],[],[]]' + println(json2.raw_decode(x) ?) +} diff --git a/vlib/v/tests/valgrind/valgrind_test.v b/vlib/v/tests/valgrind/valgrind_test.v index 227df9b332..e6fed86ed5 100644 --- a/vlib/v/tests/valgrind/valgrind_test.v +++ b/vlib/v/tests/valgrind/valgrind_test.v @@ -29,6 +29,7 @@ const skip_valgrind_files = [ 'vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.v', 'vlib/v/tests/valgrind/option_simple.v', 'vlib/v/tests/valgrind/string_plus_string_plus.v', + 'vlib/v/tests/valgrind/import_x_json2.v', ] fn vprintln(s string) {