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

Merge test_fs_open_no_permissions with test_fcntl_open. NFC #23231

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hoodmane
Copy link
Collaborator

No description provided.

@hoodmane hoodmane force-pushed the merge-open-no-permissions-test branch from 087129c to 27b88f4 Compare December 19, 2024 17:05
Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

test/fcntl/test_fcntl_open.c Outdated Show resolved Hide resolved
test/test_core.py Show resolved Hide resolved
test/test_core.py Outdated Show resolved Hide resolved
Co-authored-by: Derek Schuff <[email protected]>
assert(res >= 0);
struct stat st;
assert(stat("a", &st) == 0);
assert((st.st_mode & 0777) == 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the line that fails on windows? Perhaps we could make it more flexible?

As it stands if we add @no_windows the whole test will no longer run on windows. Alternatively you could do this:

if self.getsetting('NODERAWFS') and WINDOWS:
   self.skipTest(...)

That way only that particular variant will be skipped.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it also fails on nodefs, not just on noderawfs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a bunch of test that have something like if nodefs and WINDOWS: skip.. so we can do that here to maybe?

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

Successfully merging this pull request may close these issues.

3 participants