-
Notifications
You must be signed in to change notification settings - Fork 50
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
testsuite: avoid artificial corefile in test #5641
Conversation
Problem: In t3306-system-routercrash.t SIGSEGV is intentionally sent to a broker to test a broker crash, but this could leave a mysterious corefile in the test directory if the core file ulimit and system configuration allow it. Call `ulimit -c 0` before test_under_flux() to avoid the core file.
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.
LGTM!
Thanks! |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5641 +/- ##
==========================================
- Coverage 83.46% 83.45% -0.01%
==========================================
Files 487 487
Lines 82931 82931
==========================================
- Hits 69215 69210 -5
- Misses 13716 13721 +5 |
Based on my understanding of Not a big deal, it hasn't really helped us yet, but anyways...I noticed this is contained to |
I guess in order to do ^ you'd have to save something like |
You can test this for yourself by starting a new shell, adjusting the resource limit, then exiting and see the parent shell's resource limit is unchanged: $ ulimit -c
16
$ bash
$ ulimit -c unlimited
$ ulimit -c
unlimited
$ exit
exit
$ ulimit -c
16 Since |
Though I should mention that all tests within a single sharness test do run in the same shell and what you did above would work I think if you wanted to adjust the |
Problem: In t3306-system-routercrash.t SIGSEGV is intentionally sent to a broker to test a broker crash, but this could leave a mysterious corefile in the test directory if the core file ulimit and system configuration allow it.
Call
ulimit -c 0
before test_under_flux() to avoid the core file.