Skip to contentSkip to conversation

json-c: avoid ptest failure caused by valgrind

PATCH New [email protected] 1 participant 1 message Sep 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 json-c: avoid ptest failure caused by valgrind

From: Chen Qi <[email protected]>

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.

---
 meta/recipes-devtools/json-c/json-c/run-ptest | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/json-c/json-c/run-ptest +2 -0
index 2d0e94cd3a..acdce54f3e 100644
@@ -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
Signature · 1 line
2.25.1