commit:     2db7a007b9b5a988cd8f6783bacc5317be39b9af
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  4 19:18:28 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug  4 19:19:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2db7a007

eclass/tests: dot-a: allow some differences with strip

With the fix for the linked binutils bug, we actually want a difference
for fat archives (only) where debug information gets stripped out with
-d.

Bug: https://sourceware.org/PR33246
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/tests/dot-a.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/eclass/tests/dot-a.sh b/eclass/tests/dot-a.sh
index 982e02c28e62..5d0b0541e3e4 100755
--- a/eclass/tests/dot-a.sh
+++ b/eclass/tests/dot-a.sh
@@ -438,7 +438,7 @@ test_strip_lto() {
        ) || ret=1
        tend ${ret} "strip operated on an LTO archive when it shouldn't"
 
-       tbegin "whether strip ignores fat LTO static archives"
+       tbegin "whether strip modifies fat LTO static archives"
        ret=0
        (
                rm foo.a foo.a.bak 2>/dev/null
@@ -449,13 +449,14 @@ test_strip_lto() {
                cp foo.a foo.a.bak || return 1
                $(tc-getSTRIP) -p -d foo.a || return 1
 
-               # They should NOT differ after stripping because it
-               # can't be safely stripped without special arguments.
-               cmp -s foo.a foo.a.bak || return 1
+               # They should differ after stripping because binutils
+               # (these days) can safely strip it without special arguments
+               # via plugin support.
+               cmp -s foo.a foo.a.bak && return 1
 
                return 0
        ) || ret=1
-       tend ${ret} "strip operated on a fat LTO archive when it shouldn't"
+       tend ${ret} "strip failed to operate on a fat LTO archive when it 
should"
 }
 
 test_strip_lto_mixed() {

Reply via email to