Re: Having trouble serializing test with Automake parallel test harness
"G. Branden Robinson" <[email protected]> Thu, 5 Mar 2026 15:34:00 -0600
| Newsgroups | gmane.comp.sysutils.automake.general,gmane.comp.printing.groff.general |
|---|---|
| Message-ID | <20260305213400.uabs5vimsbqck5mq@illithid> |
--lezirahpyjrt5dws
Content-Type: text/plain; protected-headers=v1; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Having trouble serializing test with Automake parallel test
harness
MIME-Version: 1.0
Hi Zack,
Thanks for the swift follow-up!
At 2026-03-05T15:59:41-0500, Zack Weinberg wrote:
> On Thu, Mar 5, 2026, at 10:58 AM, G. Branden Robinson wrote:
> > I had to use a nasty hack to force serialization of two regression
> > tests that both can cause core dumps, and so can race with each
> > other in the TOCTTOU window on the existence of a "core" file.
>=20
> Are the core dumps necessary for the test?
Strictly? Probably not. I could alter the test cases to format some
hapax legomenon text after the applicable crash points observed in the
past and then grep the formatter output for it.
> If not, I would suggest wrapping each one with a shell script that
> does `ulimit -c 0` and then execs the main test program.
I kind of liked the idea of leaving a meaningful[1] core file in the
build tree so that it could be immediately inspected without having to
hack up the test script to take out the "ulimit -c 0".
Was I using the documented serialization mechanism incorrectly? Why
didn't it work?
Regards,
Branden
[1] assuming the person doing the build didn't employ "configure" and
"make" options so as to boil off all useful debugging information,
as distributors have traditionally loved to do
--lezirahpyjrt5dws
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmmp9sgACgkQ0Z6cfXEm
bc4GuQ/9ECih+jncCpIRVvj3wfgV9nD2IN4W0dy+Sdtwt8D5NpgKio1y85XndE7D
HHBfu1B9Olf8PyqSNLXMijVNxhfgg2MQfWVB4zkGF83UN/ceGU3Z/mN1vPIhJESp
etl2NV0HxhgHvFO3SR0u8NFB4aY8kT59ocwf3fUZmneU2sVBaB6iIyBpHzfMepT8
+Z5TnZhDAkecN2ee8LlEwgYz1dLSTNaukyIe7CRVnUJ9w1/oTBBueP9WhMudNMka
x8vH857HqKFe7WcgWrL2Z2gI9d6dTybgUxZv11fWEcU/BRTCg7vKTjcMmRPbfA6C
cahiqoe/lKvbcMJDWwXDkCo0j7lIOYbBXkBofhlIAGT5yEe1rAiFcKAkETGYKCo9
XZYmWPgvB9Cofb5Y3iTLMlOBOps1OwMbJCvQq2wOHchF9TRA5kZcFihQa/m/S7K/
JiDZ3rSwPpRSAUr2FQpyIaWIzM5bnXfjwAOS6nybGP3+rE/t0Vo3lH/YUA7VMjFq
4BdviKTY3fNFe1dXgdVbLEHOOJcsHnczfQIJMZXDlRf27oIYUFjv05Nock+GlpXr
SA6o9xLgzr5IGFbPpcaDYkCvizyKstKsCAtNzMdb3DcQJalF4MXQfviUkoNIA6eD
qQ+gn0eiDt17sRLpMr5rD/bjiYjN/coWcxUJyqZEhs4OZ1mER+U=
=4B60
-----END PGP SIGNATURE-----
--lezirahpyjrt5dws--