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

Implement -O and -G tests #1080

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Implement -O and -G tests #1080

wants to merge 2 commits into from

Conversation

theclapp
Copy link
Sponsor Collaborator

Implement -O (syntax.TsUsrOwn, "file exists and is owned by the effective user id") and -G (syntax.TsGrpOwn, "file exists and is owned by the effective group id") tests, for non-Windows only.

Under Windows, still panics, as before.

-O and -G are hard/not applicable for Windows, since it doesn't really have the concept of "file owners", only ACLs, and it's not clear how to translate one to the other.

Implement -O (syntax.TsUsrOwn, "file exists and is owned by the
effective user id") and -G (syntax.TsGrpOwn, "file exists and is owned
by the effective group id") tests, for non-Windows only.

Under Windows, still panics, as before.

-O and -G are hard/not applicable for Windows, since it doesn't really
have the concept of "file owners", only ACLs, and it's not clear how to
translate one to the other.
@theclapp
Copy link
Sponsor Collaborator Author

Oops, this won't even build under Windows. My bad. I'll get back to you.

interp/test.go Outdated Show resolved Hide resolved
Move the -O & -G code into os_notunix.go and os_unix.go.

The Windows code still just panics.
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.

None yet

2 participants