Skip to content

Commit

Permalink
Merge pull request #5658 from grom72/test-fix-5640
Browse files Browse the repository at this point in the history
test: disable avx512f tests (pmem2_mem_ext) under Valgrind
  • Loading branch information
janekmi committed May 19, 2023
2 parents 9c9301b + f1ffe19 commit d127b14
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/test/pmem2_mem_ext/TESTS.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!../env.py
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020-2022, Intel Corporation
# Copyright 2020-2023, Intel Corporation
#

import testframework as t
Expand Down Expand Up @@ -115,6 +115,14 @@ def setup(self, ctx):
ret = tools.Tools(ctx.env, ctx.build).cpufd()
self.check_arch(ctx.variant(), ret.returncode)

# XXX all tests with VARIANT_AVX512F are disabled under Valgrind
# until the issue https://github.com/pmem/pmdk/issues/5640 is fixed.
# "win32" `if`` is related to unknown `is not None` by Windows Python
if not sys.platform.startswith('win32') and ctx.valgrind is not None:
if ctx.valgrind.tool.name != "NONE":
if ctx.variant() == VARIANT_AVX512F:
raise futils.Skip("AVX512F unavailable under Valigrind")

def check_arch(self, variant, available_arch):
if variant == VARIANT_MOVDIR64B:
if available_arch < MOVDIR64B:
Expand Down

0 comments on commit d127b14

Please sign in to comment.