-
Notifications
You must be signed in to change notification settings - Fork 367
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
Use windows-sys
in windows tests
#3239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks! I got one question though, see the review comment.
/// threads should be able to reacquire the lock while it is locked by multiple other threads in shared mode | ||
fn all_shared() { | ||
println!("all_shared"); | ||
|
||
let mut lock = null_mut(); | ||
let mut condvar = null_mut(); | ||
let mut lock = MaybeUninit::zeroed(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be better to indicate the type of what we are allocating here. Type inference is great but it also makes this code pretty hard to follow if one dos not know the Windows API types by heart.
This applies everywhere in this PR.
test_dependencies/Cargo.lock
Outdated
@@ -84,9 +84,9 @@ dependencies = [ | |||
|
|||
[[package]] | |||
name = "getrandom" | |||
version = "0.2.10" | |||
version = "0.2.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid unrelated lockfile changes.
Looks good, thanks :) |
Use `windows-sys` in windows tests This PR adds `windows-sys` to `test_dependencies` so that we don't have to write out windows api bindings for each test.
💔 Test failed - checks-actions |
looks like macos being macos... |
☀️ Test successful - checks-actions |
This PR adds
windows-sys
totest_dependencies
so that we don't have to write out windows api bindings for each test.