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

tests/whoami: add windows test for issue #4614 #4901

Merged
merged 3 commits into from
May 29, 2023

Conversation

garydev10
Copy link
Contributor

@garydev10 garydev10 commented May 26, 2023

This PR add whoami windows test to enlarge coveage for issue #4614 .

@@ -50,3 +50,9 @@ fn test_normal_compare_env() {
println!("test skipped:");
}
}

#[test]
#[cfg(windows)]
Copy link
Member

Choose a reason for hiding this comment

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

Looks good! Thanks!

Maybe we could remove the cfg here and just name this test something like "test_succeeds_on_all_platforms". There might be other platforms where we skip the other test as well.

Copy link
Contributor Author

@garydev10 garydev10 May 26, 2023

Choose a reason for hiding this comment

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

Thanks for your suggestion!

I added commit to make it runs on all platforms.

@garydev10 garydev10 requested a review from tertsdiepraam May 26, 2023 12:48
@cakebaker cakebaker merged commit 4cc569f into uutils:main May 29, 2023
@cakebaker
Copy link
Contributor

Thanks :)

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