From: Chen Qi Date: Fri, 20 Sep 2024 04:11:48 +0000 (-0700) Subject: json-c: avoid ptest failure caused by valgrind X-Git-Tag: yocto-5.2~1760 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0429a278e39b7a2846144bcc3fcc24ca298cab7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git json-c: avoid ptest failure caused by valgrind json-c's ptest will automatically detect valgrind and use it to run tests. This will fail in case valgrind does not work, e.g., intel-x86-64 (corei7-64) + lib32 image. The error is about illegal instruction. Error message is like below: Illegal instruction (core dumped) valgrind --tool=memcheck ... ERROR: "test1Formatted spaced pretty" exited with non-zero exit status: 132 So we explicitly disable valgrind by exporting USE_VALGRIND=0. Signed-off-by: Chen Qi Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/json-c/json-c/run-ptest b/meta/recipes-devtools/json-c/json-c/run-ptest index 2d0e94cd3ac..acdce54f3e9 100644 --- a/meta/recipes-devtools/json-c/json-c/run-ptest +++ b/meta/recipes-devtools/json-c/json-c/run-ptest @@ -3,6 +3,8 @@ # This script is used to run json-c test suites cd tests +export USE_VALGRIND=0 + ret_val=0 for i in test*.test; do # test_basic is not an own testcase, just