git: c2153a533ffb - main - fusefs: minor cleanup in the tests

From: Alan Somers <asomers_at_FreeBSD.org>
Date: Mon, 06 Jan 2025 17:25:57 UTC
The branch main has been updated by asomers:

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

commit c2153a533ffb9691848a072c7628dcf56e0e6442
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2024-12-27 21:24:17 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2025-01-06 17:25:52 +0000

    fusefs: minor cleanup in the tests
    
    Delete some unused includes and member variables.
    
    MFC after:      2 weeks
    Sponsored by:   ConnectWise
---
 tests/sys/fs/fusefs/allow_other.cc | 3 ---
 tests/sys/fs/fusefs/forget.cc      | 1 -
 tests/sys/fs/fusefs/io.cc          | 1 -
 tests/sys/fs/fusefs/notify.cc      | 1 -
 4 files changed, 6 deletions(-)

diff --git a/tests/sys/fs/fusefs/allow_other.cc b/tests/sys/fs/fusefs/allow_other.cc
index dae6290ea8e5..24a161166a90 100644
--- a/tests/sys/fs/fusefs/allow_other.cc
+++ b/tests/sys/fs/fusefs/allow_other.cc
@@ -52,9 +52,6 @@ const static char RELPATH[] = "some_file.txt";
 class NoAllowOther: public FuseTest {
 
 public:
-/* Unprivileged user id */
-int m_uid;
-
 virtual void SetUp() {
 	if (geteuid() != 0) {
 		GTEST_SKIP() << "This test must be run as root";
diff --git a/tests/sys/fs/fusefs/forget.cc b/tests/sys/fs/fusefs/forget.cc
index 846198e75925..1e7764ac4782 100644
--- a/tests/sys/fs/fusefs/forget.cc
+++ b/tests/sys/fs/fusefs/forget.cc
@@ -31,7 +31,6 @@
 extern "C" {
 #include <sys/types.h>
 #include <sys/mount.h>
-#include <sys/sysctl.h>
 
 #include <fcntl.h>
 #include <semaphore.h>
diff --git a/tests/sys/fs/fusefs/io.cc b/tests/sys/fs/fusefs/io.cc
index f8684ee02100..ced291836da0 100644
--- a/tests/sys/fs/fusefs/io.cc
+++ b/tests/sys/fs/fusefs/io.cc
@@ -31,7 +31,6 @@
 extern "C" {
 #include <sys/types.h>
 #include <sys/mman.h>
-#include <sys/sysctl.h>
 
 #include <fcntl.h>
 #include <stdlib.h>
diff --git a/tests/sys/fs/fusefs/notify.cc b/tests/sys/fs/fusefs/notify.cc
index e3f539f57599..1e22bde13db7 100644
--- a/tests/sys/fs/fusefs/notify.cc
+++ b/tests/sys/fs/fusefs/notify.cc
@@ -30,7 +30,6 @@
 
 extern "C" {
 #include <sys/types.h>
-#include <sys/sysctl.h>
 
 #include <fcntl.h>
 #include <pthread.h>