git: 14086729650b - main - stress2: Added cleanup on error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Feb 2022 11:08:07 UTC
The branch main has been updated by pho:
URL: https://cgit.FreeBSD.org/src/commit/?id=14086729650b101c43424004fa754eb7f7db8e89
commit 14086729650b101c43424004fa754eb7f7db8e89
Author: Peter Holm <pho@FreeBSD.org>
AuthorDate: 2022-02-22 11:07:45 +0000
Commit: Peter Holm <pho@FreeBSD.org>
CommitDate: 2022-02-22 11:07:45 +0000
stress2: Added cleanup on error
---
tools/test/stress2/misc/sendfile22.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/test/stress2/misc/sendfile22.sh b/tools/test/stress2/misc/sendfile22.sh
index ea3a564e1561..73737fb3e352 100755
--- a/tools/test/stress2/misc/sendfile22.sh
+++ b/tools/test/stress2/misc/sendfile22.sh
@@ -63,6 +63,8 @@ while [ $((` date +%s` - start)) -lt 180 ]; do
umount $mntpoint 2>/dev/null # busy umount
$dir/sendfile22
s=$?
+ [ $s -ne 0 ] &&
+ pkill sendfile22
cmp -s input output || break
[ `stat -f '%z' input` -ne ` stat -f '%z' output` ] && break
n=$((n + 1))