From owner-dev-commits-src-all@freebsd.org Fri Jun 25 08:40:05 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3AF5465C0F5; Fri, 25 Jun 2021 08:40:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GB9Rn0wB8z3QbK; Fri, 25 Jun 2021 08:40:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 03CDB27CBD; Fri, 25 Jun 2021 08:40:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15P8e40r073247; Fri, 25 Jun 2021 08:40:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15P8e4Th073244; Fri, 25 Jun 2021 08:40:04 GMT (envelope-from git) Date: Fri, 25 Jun 2021 08:40:04 GMT Message-Id: <202106250840.15P8e4Th073244@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: 95d3044bbdad - main - sbin/md5: fix test case to not write outside temp directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 95d3044bbdadfca6120a3e7c61c9ebb9a476f369 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2021 08:40:05 -0000 The branch main has been updated by se: URL: https://cgit.FreeBSD.org/src/commit/?id=95d3044bbdadfca6120a3e7c61c9ebb9a476f369 commit 95d3044bbdadfca6120a3e7c61c9ebb9a476f369 Author: Stefan Eßer AuthorDate: 2021-06-25 08:37:51 +0000 Commit: Stefan Eßer CommitDate: 2021-06-25 08:37:51 +0000 sbin/md5: fix test case to not write outside temp directory The bsd-p-test did create files 1.out .. 8.out in the test directory. This has been fixed and the temporary output files are now written to the temporary directory. MFC after: 3 days --- sbin/md5/tests/bsd-p-test.SH | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/md5/tests/bsd-p-test.SH b/sbin/md5/tests/bsd-p-test.SH index 3677a34b335a..77a725377e2c 100644 --- a/sbin/md5/tests/bsd-p-test.SH +++ b/sbin/md5/tests/bsd-p-test.SH @@ -8,9 +8,9 @@ testloop () { for algorithm in sha512; do for f in %%TESTSBASE%%/sbin/md5/*.inp; do - outbase=%%TESTSBASE%%/sbin/md5/$(basename $f .inp) + outbase=$(basename $f .inp) $algorithm$sum $opt -p < $f > $outbase.out - diff $outbase.$algorithm$sum-p.chk $outbase.out || exitcode=1 + diff %%TESTSBASE%%/sbin/md5/$outbase.$algorithm$sum-p.chk $outbase.out || exitcode=1 done done }