summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/json-c
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2024-09-19 21:11:48 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-09-20 15:59:03 +0100
commit4a6d8703072031a5ef9eaf118e69538157646597 (patch)
tree523c0c1048c86335ac8221906274773ba3bf9543 /meta/recipes-devtools/json-c
parent33191e29f0e5125a7a0bbc14f09e9befb793e67c (diff)
downloadpoky-4a6d8703072031a5ef9eaf118e69538157646597.tar.gz
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. (From OE-Core rev: b0429a278e39b7a2846144bcc3fcc24ca298cab7) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/json-c')
-rw-r--r--meta/recipes-devtools/json-c/json-c/run-ptest2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/json-c/json-c/run-ptest b/meta/recipes-devtools/json-c/json-c/run-ptest
index 2d0e94cd3a..acdce54f3e 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 @@
3# This script is used to run json-c test suites 3# This script is used to run json-c test suites
4cd tests 4cd tests
5 5
6export USE_VALGRIND=0
7
6ret_val=0 8ret_val=0
7for i in test*.test; do 9for i in test*.test; do
8 # test_basic is not an own testcase, just 10 # test_basic is not an own testcase, just