From 321a12a017da34b2838bd2a35c365a7b372e8af5 Mon Sep 17 00:00:00 2001 From: Tomasz Gromadzki Date: Tue, 16 May 2023 11:00:46 +0200 Subject: [PATCH] test: disable test due to #5641 Signed-off-by: Tomasz Gromadzki --- src/test/ex_libpmem2/TESTS.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/test/ex_libpmem2/TESTS.py b/src/test/ex_libpmem2/TESTS.py index 5183cf91cef..9f4bd08ab03 100755 --- a/src/test/ex_libpmem2/TESTS.py +++ b/src/test/ex_libpmem2/TESTS.py @@ -4,6 +4,7 @@ # import futils import testframework as t +from testframework import granularity as g @t.require_build(['debug', 'release']) @@ -73,7 +74,10 @@ def run(self, ctx): ctx.exec(example_path, *args, stdout_file='out4.log') -class TEST5(EX_LIBPMEM2): +# XXX Disable the test execution under pmemcheck with g.PAGE until fixed. +# https://github.com/pmem/pmdk/issues/5641 +# additionall test TEST501 has been added to cover non-pmemcheck configs. +class EX_LIBPMEM2_TEST5(EX_LIBPMEM2): def run(self, ctx): example_path = futils.get_example_path(ctx, 'pmem2', 'unsafe_shutdown') @@ -82,6 +86,19 @@ def run(self, ctx): ctx.exec(example_path, "read", file_path, stdout_file='out5.log') +@g.require_granularity(g.CACHELINE, g.BYTE) # to be removed when fixed +@t.require_valgrind_enabled('pmemcheck') # to be removed when fixed +class TEST5(EX_LIBPMEM2_TEST5): + + pass + + +@t.require_valgrind_disabled('pmemcheck') +class TEST501(EX_LIBPMEM2_TEST5): # to be removed when fixed + + pass + + @t.windows_exclude # This test case would require two VALGRIND_SET_CLEAN() calls # to be added to the "src/examples/libpmem2/ringbuf/ringbuf.c"