]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
json-c: avoid ptest failure caused by valgrind
authorChen Qi <Qi.Chen@windriver.com>
Fri, 20 Sep 2024 04:11:48 +0000 (21:11 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Sep 2024 14:56:27 +0000 (15:56 +0100)
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 <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/json-c/json-c/run-ptest

index 2d0e94cd3ac1563c2d8718b7de135051823f4030..acdce54f3e9aa0e868ca84d9308038786fb9b61c 100644 (file)
@@ -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