-
Notifications
You must be signed in to change notification settings - Fork 2.6k
cargo bench
fails when running unittest
s
#14247
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
Comments
Just setup a new package and followed Getting Started. No issue found. Could you provide a complete minimal reproducer? Either a Git repo, or uploading a zip of your package. |
Saw SIGKILL so was wondering something like #13961 (comment). Looks like it only happens on this specific package but not other so may be irrelevant. |
I'll try to repro. My crate is proprietary so I'll have to make a repro. Can you give me more information about how I can debug this or what step of the build is failing? |
See #8961 and rust-lang/rust#79857. Check if it is OOM-killed. |
On macOS, you can view the system logs to see if the |
Some updates. |
Root caused - my company laptop was blocking the executable. |
Problem
I have a benchmark set up in my cargo project. When I run
cargo bench
I expect for it to execute this benchmark.Instead, it begins executing my unit tests and then fails with a SIGKILL. However, running
cargo test
passes.Steps
cargo bench
target. I used the fibonacci example from the Criterion quick start page.cargo bench
Possible Solution(s)
I was curious if there might be an issue on my side so I checked out the Criterion repo. All tests and benchmarks work fine.
It seems as though something about the way my tests are executing does not play well with
cargo bench
.I may be able to work around this by bypassing unittest execution, but even executing
cargo bench -- <test_name>
does not help.Notes
No response
Version
The text was updated successfully, but these errors were encountered: