[PATCH] conform: Add initial tests for C23.
Collin Funk
collin.funk1@gmail.com
Thu Apr 3 17:18:31 GMT 2025
Hi Joesph,
Joseph Myers <josmyers@redhat.com> writes:
> The conform/ data should correspond to the standard, whether implemented
> or not (and then potentially have XFAILs for things that are not
> implemented) - not to a particular subset that's currently implemented.
Ok, sure. That makes sense.
> Also, for reviewability, I think a new standard should be added to
> conform/ in two stages. The first stage should be one (just in the *-data
> files) that makes ISO23 into a clone of ISO11 - hopefully automatically
> generated, and automatically verified that the results of preprocessing
> the *-data files for existing standards are unchanged, and the results for
> ISO11 and ISO23 are identical after that patch. Only after that should
> actual changes to the expectations relating to changes in C23 be done.
I see. For the first patch the following should work to automatically
update all the files:
$ find conform -name '*.h-data' | xargs sed -i -e 's| !defined ISO11| !defined ISO11 \&\& !defined ISO23|g'
$ find conform -name '*.h-data' | xargs sed -i -e 's| defined ISO11| defined ISO11 \|\| defined ISO23|g'
$ find conform -name '*.h-data' | xargs sed -i -e 's|ifdef ISO11|if defined ISO11 \|\| defined ISO23|g'
And then don't change the Makefile or anything so the tests aren't run
by the bot? Since we would get namespace violations for functions and
such added after C11.
Collin
More information about the Libc-alpha
mailing list