]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
binutils-testsuite: unset SOURCE_DATE_EPOCH when running the tests
authorRoss Burton <ross.burton@arm.com>
Thu, 4 Dec 2025 16:18:17 +0000 (16:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Dec 2025 18:02:45 +0000 (18:02 +0000)
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 <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb

index fe6b8c6f404fd4e67f0045a9c9007a4b81641c12..4e393c4e4d645ec4a4907d2ab453451d288b7142 100644 (file)
@@ -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 \