the error message in musl based systems is
EXPECTED: Operation not supported
RECIEVED: Not supported

The test is then marked as failed due to this.
Ignore this test on musl

Signed-off-by: Khem Raj <[email protected]>
---
 meta/recipes-support/attr/attr.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-support/attr/attr.inc 
b/meta/recipes-support/attr/attr.inc
index ab62563690..8ba865a74a 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -48,6 +48,10 @@ do_install_ptest() {
        cp -rf ${S}/test/ ${D}${PTEST_PATH}
 }
 
+do_install_ptest:append:libc-musl() {
+        sed -i -e 's|f: Operation n|f: N|g' ${D}${PTEST_PATH}/test/attr.test
+}
+
 RDEPENDS:${PN}-ptest = "attr \
                         bash \
                         coreutils \
-- 
2.40.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#180265): 
https://lists.openembedded.org/g/openembedded-core/message/180265
Mute This Topic: https://lists.openembedded.org/mt/98403825/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to