[PATCH 0/1]

Manuel Jacob me@manueljacob.de
Thu Apr 16 14:03:29 GMT 2026


On 15/04/2026 23.57, Manuel Jacob wrote:
> I considered adding a test to binutils/testsuite/binutils-all/ar.exp, but I didn’t find a portable way to print the armap’s timestamp. I’d appreciate any suggestion on how to improve test coverage.

I wrote a test that:

1) assembles an object file
2) creates an archive with some SOURCE_DATE_EPOCH value
3) sleeps 1 second
4) assembles an object file
5) creates an archive with the same SOURCE_DATE_EPOCH value
6) compares the two archives byte-wise

I expect that the test passes for some formats even before my patch and 
still fails for some formats after my patch. How do I run the test for 
all formats?

Assuming that the test fails for some formats, would it be reasonable to 
pass the test if the archives compare equal and xfail the test otherwise?

The *.exp files use an inconsistent mix between tabs and spaces for 
indentation. Which should I use?

> Manuel Jacob (1):
>    BFD: Use SOURCE_DATE_EPOCH for COFF style armaps.
> 
>   bfd/archive.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 



More information about the Binutils mailing list