Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2019 21:41:07 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r345386 - projects/fuse2/tests/sys/fs/fusefs
Message-ID:  <201903212141.x2LLf7wa022117@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Thu Mar 21 21:41:07 2019
New Revision: 345386
URL: https://svnweb.freebsd.org/changeset/base/345386

Log:
  fusefs: don't check for the fusefs module during the tests
  
  It's sufficient to check for /dev/fuse.  And due to bug 236647, the module
  could be named either fuse or fusefs.
  
  PR:		236647
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/fuse2/tests/sys/fs/fusefs/utils.cc

Modified: projects/fuse2/tests/sys/fs/fusefs/utils.cc
==============================================================================
--- projects/fuse2/tests/sys/fs/fusefs/utils.cc	Thu Mar 21 21:14:25 2019	(r345385)
+++ projects/fuse2/tests/sys/fs/fusefs/utils.cc	Thu Mar 21 21:41:07 2019	(r345386)
@@ -43,15 +43,10 @@ using namespace testing;
 /* Check that fusefs(4) is accessible and the current user can mount(2) */
 void check_environment()
 {
-	const char *mod_name = "fusefs";
 	const char *devnode = "/dev/fuse";
 	const char *usermount_node = "vfs.usermount";
 	int usermount_val = 0;
 	size_t usermount_size = sizeof(usermount_val);
-	if (modfind(mod_name) == -1) {
-		GTEST_SKIP() << "Module " << mod_name <<
-			" could not be resolved";
-	}
 	if (eaccess(devnode, R_OK | W_OK)) {
 		if (errno == ENOENT) {
 			GTEST_SKIP() << devnode << " does not exist";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903212141.x2LLf7wa022117>