-
I am debugging a Rust unit test that should fail when it runs out of file descriptors. The limit is normally 1024, but when I debug the test with codelldb, the limit seems to be much higher and the test passes. How can I set the limit back to 1024 when debugging? |
Beta Was this translation helpful? Give feedback.
Answered by
vadimcn
Jan 14, 2025
Replies: 1 comment 1 reply
-
Maybe use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
glyn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe use
setrlimit(RLIMIT_NOFILE, ...)
in your test?