-
Notifications
You must be signed in to change notification settings - Fork 385
Miri no longer works on Windows MSVC due to unimplemented function GetFileInformationByHandleEx #2599
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hm, this flew under my radar (it landed long after the R+ I gave). I'm not sure the best approach here -- the way we implement this in std is a huge hack since we're doing this to see if it's obviously a cygwin or msys pty, I think the best approach might be an additional hack for miri in std, unless we want miri to pretend to be cygwin/msys in this case... |
Perhaps having miri report |
Is there any reason this didn't cause a test failure somewhere? Is this again our missing Windows target coverage for Miri tests? |
I don't know if we run miri in CI for windows. |
I would strongly prefer adding a temporary But this code is (almost) a direct copy from the isatty crate and I thought we already had shims to handle that? |
@ChrisDenton What would the |
Does miri actually need to care right now? Does it matter if it always reports true (or always false)? |
My main concern there is regressing libtest output compared to whatever we had previously, but perhaps I don't need to be worried about that? |
It looks like it worked before by, effectively, returning false each time which is why it reaches the fallback in the new code. See: |
Oh, yeah, that's a much better way to do it. |
Yeah we should make Looks like we have two options -- actually make Cc @drmeepster |
Actually turns out we can just use a simple stub implementation of |
As of
nightly-2022-10-16
,miri test
now unconditionally fails with an error aboutGetFileInformationByHandleEx
being unimplemented. I first noticed this here after a merge of an older PR failed CI. At a glance, this seems to be a result of rust-lang/rust#98033. I noticed that the function is mentioned in #2057, but nothing more than that. What would be involved in shimming this function out, since it seems rather bad that all Windows Miri testing no longer works?Version info:
Reproduction case:
src/lib.rs
:Cargo.toml
:The text was updated successfully, but these errors were encountered: