Skip to contentSkip to conversation

glibc: fix gprof lookup during gmon tests

PATCH New [email protected] 1 participant 1 message Dec 3, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glibc: fix gprof lookup during gmon tests

From: Hemanth Kumar M D <[email protected]>

A few gmon tests were failing with the following error:

tst-gmon-gprof.sh: line 52: gprof: command not found

The test scripts look for 'gprof' binary, but the binaries are available at target-prefixed directory with an appended prefix of ${TARGET_PREFIX}. So, the binary should be ${TARGET_PREFIX}gprof

Testing results:

+--------------+---------+---------+-------+
| Result       | Before  | After   | Diff  |
+--------------+---------+---------+-------+
| PASS         |   6968  |   6972  |   +4  |
| XPASS        |      4  |      4  |    0  |
| FAIL         |     46  |     42  |   -4  |
| XFAIL        |     16  |     16  |    0  |
| UNSUPPORTED  |    103  |    103  |    0  |
+--------------+---------+---------+-------+
---
 meta/recipes-core/glibc/glibc-testsuite_2.42.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/glibc/glibc-testsuite_2.42.bb +1 -0
index 3a2764e40b..6477612feb 100644
@@ -21,6 +21,7 @@ do_check:append () {
     chmod 0755 ${UNPACKDIR}/check-test-wrapper
 
     oe_runmake -i \
+        GPROF="${TARGET_PREFIX}gprof" \
         QEMU_SYSROOT="${RECIPE_SYSROOT}" \
         QEMU_OPTIONS="${@qemu_target_binary(d)} ${QEMU_OPTIONS}" \
         SSH_HOST="${TOOLCHAIN_TEST_HOST}" \
Signature · 1 line
2.49.0