]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
glibc: fix gprof lookup during gmon tests
authorHemanth Kumar M D <hemanth.250302@gmail.com>
Wed, 3 Dec 2025 06:42:49 +0000 (22:42 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Dec 2025 15:45:04 +0000 (15:45 +0000)
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>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glibc/glibc-testsuite_2.42.bb

index 3a2764e40b03e4433928adced32bd763ca2ba7ce..6477612feb4d80ae8778a0b99f73fbe80443b0c6 100644 (file)
@@ -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}" \