git: 19ab36104534 - main - fusefs: in the tests, always assume debug.try_reclaim_vnode is available

From: Alan Somers <asomers_at_FreeBSD.org>
Date: Sat, 01 Jan 2022 03:39:03 UTC
The branch main has been updated by asomers:

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

commit 19ab361045343bb777176bb08468f7706d7649c4
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2021-12-02 02:38:04 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2022-01-01 01:04:52 +0000

    fusefs: in the tests, always assume debug.try_reclaim_vnode is available
    
    In an earlier version of the revision that created that sysctl (D20519)
    the sysctl was gated by INVARIANTS, so the test had to check for it.
    But in the committed version it is always available.
    
    MFC after:      2 weeks
---
 tests/sys/fs/fusefs/forget.cc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tests/sys/fs/fusefs/forget.cc b/tests/sys/fs/fusefs/forget.cc
index c138b7acc4aa..2041d20efae4 100644
--- a/tests/sys/fs/fusefs/forget.cc
+++ b/tests/sys/fs/fusefs/forget.cc
@@ -52,10 +52,6 @@ void SetUp() {
 	if (geteuid() != 0)
 		GTEST_SKIP() << "Only root may use " << reclaim_mib;
 
-	if (-1 == sysctlbyname(reclaim_mib, NULL, 0, NULL, 0) &&
-	    errno == ENOENT)
-		GTEST_SKIP() << reclaim_mib << " is not available";
-
 	FuseTest::SetUp();
 }