From 36fe212db05bb26894c158053df0c5852084deb2 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 10 Jan 2024 23:05:37 -0800 Subject: valgrind: Ignore some tests which fail with llvm/clang runtime These tests could be fixed in valgrind if we did not treat linux == gcc assumption. On manual inspection, these tests are not really failing but clang based systems emit more information ( assembly file info in debug info) Signed-off-by: Khem Raj --- recipes-devtools/valgrind/valgrind_%.bbappend | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 recipes-devtools/valgrind/valgrind_%.bbappend diff --git a/recipes-devtools/valgrind/valgrind_%.bbappend b/recipes-devtools/valgrind/valgrind_%.bbappend new file mode 100644 index 0000000..d5c3d36 --- /dev/null +++ b/recipes-devtools/valgrind/valgrind_%.bbappend @@ -0,0 +1,13 @@ + +# Remove tests when using clang since, clang generates debug info +# for asm files too, like freebsd outputs but we are on linux +# and valgrind tests think its always using gcc on linux +do_install_ptest:append () { + if [ "${@bb.utils.contains('TC_CXX_RUNTIME', 'llvm', 'True', 'False', d)}" ] + then + rm ${D}${PTEST_PATH}/memcheck/tests/gone_abrt_xml.vgtest + rm ${D}${PTEST_PATH}/memcheck/tests/threadname_xml.vgtest + rm ${D}${PTEST_PATH}/drd/tests/annotate_barrier_xml.vgtest + rm ${D}${PTEST_PATH}/none/tests/fdleak_cmsg.vgtest + fi +} -- cgit v1.2.3-54-g00ecf