Re: coredumpctl: matching by e.g. env var?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Mar 2023 at 12:23, Stephan Bergmann <sbergman@xxxxxxxxxx> wrote:
>
> On 15/03/2023 13:18, Luca Boccassi wrote:
> > The hard part is adding the note correctly, with the right size,
> > alignment, flags, etc. You can use the linker to add a placeholder
> > value, eg --package-metadata='{"name":"LO-testcase-xxxxxxxx"}' and
> > then simply edit in place before each test, as long as you keep the
> > length identical, it should be trivial and quick to do.
>
> Tests run in parallel, so I'd need to create copies of executables used
> during a test.  This looks like it would start to get ugly pretty quickly.

Seems doable to me, but up to you. It's the only option to make the
core file itself recognizable. Your other option is to run each test
in a separate unit, maybe using a template, and then you'd have the
unit name to tell you what is what. The information wouldn't be in the
core file of course, but it would be in the journal entry associated
with it.



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux