Skip to contentSkip to conversation

coreutils: Ignore line-bytes.sh and no-allocate tests on musl

PATCH New Khem Raj 1 participant 1 message Jan 10, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 coreutils: Ignore line-bytes.sh and no-allocate tests on musl

bash fails in xmalloc when running these tests. More thorough investigation may reveal real cause, however, it seems to fail on other musl distros as well.

---
 meta/recipes-core/coreutils/coreutils_9.4.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-core/coreutils/coreutils_9.4.bb +6 -0
index e3e27e099d0..c0ca150253b 100644
@@ -210,4 +210,10 @@ do_install_ptest () {
     sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest
 }
 
+do_install_ptest:append:libc-musl () {
+    # these tests fail due to bash on musl systems
+    # xmalloc: cannot allocate 16146 bytes
+    sed -i -e '/tests\/dd\/no-allocate.sh/d' ${D}${PTEST_PATH}/Makefile
+    sed -i -e '/tests\/split\/line-bytes.sh/d' ${D}${PTEST_PATH}/Makefile
+}
 FILES:${PN}-ptest += "${bindir}/getlimits"
Signature · 1 line
2.43.0