]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
tests: force non-deterministic mode in non-deterministic tests
authorStephen Kitt <steve@sk2.org>
Mon, 11 Mar 2024 07:21:47 +0000 (08:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Mar 2024 07:21:47 +0000 (08:21 +0100)
commit64e215c15bc316f673161c76db93a50bda45666a
treedeaf0fadb184a9ed1653a11e94ce93df801c1ad6
parent5790996072837620a8fd3756dda5138eb2f2781b
tests: force non-deterministic mode in non-deterministic tests

Since ar can be built defaulting to deterministic mode, tests which
expect non-deterministic behaviour need to explicitly set the U flag.

The non-deterministic member test expects SOURCE_DATE_EPOCH to not be
set; this documents that. Unconditionally unsetting the variable
causes issues in test infrastructure (which expects unsetenv to only
be called on variables which are already set).

Signed-off-by: Stephen Kitt <steve@sk2.org>
binutils/testsuite/binutils-all/ar.exp