The branch main has been updated by se:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d804497068c16bcb05383d7227d899f4ba59f706

commit d804497068c16bcb05383d7227d899f4ba59f706
Author:     Stefan Eßer <[email protected]>
AuthorDate: 2023-02-06 20:11:51 +0000
Commit:     Stefan Eßer <[email protected]>
CommitDate: 2023-02-06 20:25:44 +0000

    md5/tests: extend md5 test
    
    The testloop function is called with various parameters, but those
    were ignored in the coreutils-c-test script. This was an oversight
    and is fixed by passing the option to all invocations of the hash
    functions in this test script.
    
    Reported by:    des
    MFC after:      3 days
---
 sbin/md5/tests/coreutils-c-test.SH | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbin/md5/tests/coreutils-c-test.SH 
b/sbin/md5/tests/coreutils-c-test.SH
index 5996e533c627..95018abd1f27 100644
--- a/sbin/md5/tests/coreutils-c-test.SH
+++ b/sbin/md5/tests/coreutils-c-test.SH
@@ -8,8 +8,8 @@ testloop () {
        opt=$1
 
        while read algorithm; do
-               ${algorithm}sum -c %%TESTSBASE%%/sbin/md5/${algorithm}.digest 
|| exitcode=1
-               ${algorithm}sum -c 
%%TESTSBASE%%/sbin/md5/${algorithm}sum.digest || exitcode=1
+               ${algorithm}sum $opt -c 
%%TESTSBASE%%/sbin/md5/${algorithm}.digest || exitcode=1
+               ${algorithm}sum $opt -c 
%%TESTSBASE%%/sbin/md5/${algorithm}sum.digest || exitcode=1
        done < %%TESTSBASE%%/sbin/md5/algorithms.txt
 }
 

Reply via email to