From 7ea5d2c5aadb1852aff23616e973b382df44c8d0 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 4 Dec 2025 16:18:17 +0000 Subject: [PATCH] binutils-testsuite: unset SOURCE_DATE_EPOCH when running the tests The replacing_non_deterministic_member() test in ar.exp explicitly needs SOURCE_DATE_EPOCH to be unset: # This test expects SOURCE_DATE_EPOCH to not be set in the environment I hope that the test harness could just unset this in advance of running the tests, but until this is upstreamed we can unset it. This fixes the test: ptestresult.binutils.replacing non-deterministic member (wrong size, expected: 920) Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb index fe6b8c6f404..4e393c4e4d6 100644 --- a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb +++ b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb @@ -75,6 +75,10 @@ do_check[prefuncs] += "check_prepare" do_check[nostamp] = "1" do_check() { export LC_ALL=C + + # Needs to be unset for binutils/testsuite/bintils-all/ar.exp:replacing_non_deterministic_member() to pass. + unset SOURCE_DATE_EPOCH + for i in ${CHECK_TARGETS}; do (cd ${B}/$i/testsuite; runtest \ --tool $i \ -- 2.47.3