Skip to content

Commit

Permalink
testsuite: avoid artificial corefile in test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
grondo committed Dec 28, 2023
1 parent 6009b67 commit afd5ecc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/t3306-system-routercrash.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ This test verifies that the invariant holds when the router crashes.

export TEST_UNDER_FLUX_TOPO=kary:1

# A test below intentionally sends SIGSEGV to a broker process --
# avoid an unnecessary corefile by ensuring the corefile limit is 0
# before calling test_under_flux():
ulimit -c 0

test_under_flux 3 system

startctl="flux python ${SHARNESS_TEST_SRCDIR}/scripts/startctl.py"
Expand Down

0 comments on commit afd5ecc

Please sign in to comment.