From afd5eccc1f6c2822542ee3874155ebb63e20061b Mon Sep 17 00:00:00 2001 From: "Mark A. Grondona" Date: Thu, 28 Dec 2023 07:43:30 -0800 Subject: [PATCH] testsuite: avoid artificial corefile in test 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. --- t/t3306-system-routercrash.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/t3306-system-routercrash.t b/t/t3306-system-routercrash.t index 2069ff9b8d06..be55979d4079 100755 --- a/t/t3306-system-routercrash.t +++ b/t/t3306-system-routercrash.t @@ -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"