mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
This commit is contained in:
parent
91ff3a0d3d
commit
44dc9245e7
1 changed files with 0 additions and 5 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue