diff mbox series

glibc: fix gprof lookup during gmon tests

Message ID 20251203064249.1495565-1-Deepesh.Varatharajan@windriver.com
State New
Headers show
Series glibc: fix gprof lookup during gmon tests | expand

Commit Message

Deepesh Varatharajan Dec. 3, 2025, 6:42 a.m. UTC
From: Hemanth Kumar M D <hemanth.250302@gmail.com>

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  |
+--------------+---------+---------+-------+

Signed-off-by: Hemanth Kumar M D <hemanth.250302@gmail.com>
Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
---
 meta/recipes-core/glibc/glibc-testsuite_2.42.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-core/glibc/glibc-testsuite_2.42.bb b/meta/recipes-core/glibc/glibc-testsuite_2.42.bb
index 3a2764e40b..6477612feb 100644
--- a/meta/recipes-core/glibc/glibc-testsuite_2.42.bb
+++ b/meta/recipes-core/glibc/glibc-testsuite_2.42.bb
@@ -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}" \