git: 874eaa3821dd - main - tests/newsyslog: cleanup after tests_normal_rotate_recompress test

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Tue, 23 Sep 2025 19:33:42 UTC
The branch main has been updated by glebius:

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

commit 874eaa3821dd678ca27706af3f023844e3094b2e
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-09-23 09:21:02 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-09-23 19:32:26 +0000

    tests/newsyslog: cleanup after tests_normal_rotate_recompress test
    
    The garbage left would prevent subsequent tests to succeed.  Note that
    currently this is the last test to execute.
---
 usr.sbin/newsyslog/tests/legacy_test.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/usr.sbin/newsyslog/tests/legacy_test.sh b/usr.sbin/newsyslog/tests/legacy_test.sh
index 5aecdeacd10a..1ec48d5a0cc7 100644
--- a/usr.sbin/newsyslog/tests/legacy_test.sh
+++ b/usr.sbin/newsyslog/tests/legacy_test.sh
@@ -522,6 +522,8 @@ tests_normal_rotate_recompress() {
 	ckfe ${LOGFNAME}.0${ext}
 	ckfe ${LOGFNAME}.1${ext}
 	end
+
+	tmpdir_clean
 }
 
 echo 1..185