Re: [LTP] OpenPOSIX: Add common entry point function for all tests

Petr Vorel
2026-04-21T10:26:57Z

> On 4/17/26 16:44, Petr Vorel wrote:
> > > > > This changes verbatim POSIX specification text. The assertions.xml files
> > > > > quote the POSIX standard, which defines behaviour relative to main() — the C
> > > > > entry point, not an LTP-internal function name. Revert these hunks in both
> > > > > pthread_create/assertions.xml and pthread_exit/assertions.xml.

> > > > +1

> > > This "issue" is nonsense. I've checked the XML files and the assertions are
> > > still correct as is regardless of renaming a few functions. The
> > > pthread_create() and pthread_exit() specification applies special treatment
> > > to the main thread and adding one more function call between the main()
> > > function and the test code does not change that.

> > I understood that spec talks about main() as a specific C startup function.
> > But ok, I was probably wrong.

> The spec DOES talk about main() as the C process startup function. But the
> AI for some reason believes that my patch can somehow rewrite the POSIX
> standard itself.

I understand it differently: keep main() because that's the C entry function
and any reader of assertions.xml does not really care about our implementation
that we wrap main() with other function for our internal purposes of other test
scenario.

Kind regards,
Petr