You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
libc crate tests do not run (or even compile) on linux targets in CI #4149
The branch with exec would only be executed when QEMU is set, which shouldn't be the case for anything x86 (though a command followed by exit is better style than relying on exec, and that grep seems fragile). I also don't think QEMU is set for any of the qemu-system tests, since those were failing when I added the test branch.
$cmd is not the same at lines 91 and 123, it gains --manifest-path libc-test/Cargo.toml in between. This should probably just be --all on platforms where unit tests can run successfully.
The branch with exec would only be executed when QEMU is set, which shouldn't be the case for anything x86 (though a command followed by exit is better style than relying on exec, and that grep seems fragile). I also don't think QEMU is set for any of the qemu-system tests, since those were failing when I added the test branch.
Yes, I think you're right.
$cmd is not the same at lines 91 and 123, it gains --manifest-path libc-test/Cargo.toml in between. This should probably just be --all on platforms where unit tests can run successfully.
Right, I paged this out. Either that or we shouldn't have tests in the libc crate. The situation today is quite inconsistent. Note that --all is a deprecated alias for --workspace.
Activity
chore: Pin `libc` to `0.2.163`
chore: Pin `libc` to `0.2.163`
chore: Pin `libc` to `0.2.163`
tgross35 commentedon Nov 26, 2024
Your
--no-default-featuresconfiguration is not covered, but isn't this test being run bylibc/ci/run.sh
Lines 83 to 92 in 42e5708
tamird commentedon Nov 26, 2024
No, it is not, because of
exec:libc/ci/run.sh
Line 80 in 42e5708
Were it not for that
execthen--no-default-featureswould be covered:libc/ci/run.sh
Line 123 in 42e5708
tgross35 commentedon Nov 26, 2024
The branch with
execwould only be executed whenQEMUis set, which shouldn't be the case for anything x86 (though a command followed byexitis better style than relying onexec, and that grep seems fragile). I also don't thinkQEMUis set for any of the qemu-system tests, since those were failing when I added the test branch.$cmdis not the same at lines 91 and 123, it gains--manifest-path libc-test/Cargo.tomlin between. This should probably just be--allon platforms where unit tests can run successfully.tamird commentedon Nov 26, 2024
Yes, I think you're right.
Right, I paged this out. Either that or we shouldn't have tests in the libc crate. The situation today is quite inconsistent. Note that
--allis a deprecated alias for--workspace.fix: Ensure that `const extern fn` is always enabled
fix: Ensure that `const extern fn` is always enabled
fix: Ensure that `const extern fn` is always enabled
fix: Ensure that `const extern fn` is always enabled
fix: Ensure that `const extern fn` is always enabled
fix: Ensure that `const extern fn` is always enabled
tgross35 commentedon Nov 26, 2024
Released in 0.2.166 https://github.com/rust-lang/libc/releases/tag/0.2.166