From 965c6cf63386edba8a27558c42d4e96ef9afce70 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 | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/test/ex_libpmem2/TESTS.py b/src/test/ex_libpmem2/TESTS.py index 5183cf91cef..fa446198a70 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') @@ -81,6 +85,22 @@ def run(self, ctx): ctx.exec(example_path, "write", file_path, "foobar") 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): + + def run(self, ctx): + example_path = futils.get_example_path(ctx, 'pmem2', 'unsafe_shutdown') + file_path = ctx.create_holey_file(self.file_size, 'testfile0') + ctx.exec(example_path, "write", file_path, "foobar") + ctx.exec(example_path, "read", file_path, stdout_file='out5.log') + + +@t.require_valgrind_disabled('pmemcheck') +class TEST501(EX_LIBPMEM2_TEST5): # to be removed when fix available + + pass + @t.windows_exclude # This test case would require two VALGRIND_SET_CLEAN() calls