Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test MountTest.GetMntInfo fails with "Expected: (onlen) >= (1), actual: 0 vs 1" #9

Open
dougburns opened this issue Jan 7, 2023 · 0 comments

Comments

@dougburns
Copy link
Contributor

Running the test suite results in a test failure because getmntinfo returns an element with a zero length value in f_mntonname.

From the documentation for the w_getmntent function, I suspect this is because the userid running the tests does not have access to all of the mount points:

"If the caller of w_getmntent() lacks search authorization to one or more of the directories in the mount point pathname, mnt_mountpoint is returned empty. That is, mnt_pathlen is zero and mnt_mountpoint contains a NULL as the first character."

I don't know whether this should be handled in the function or requires a modification to the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant