[LTP] [PATCH] syscalls: Use anonymous .resource_files for docparse

Cyril Hrubis chrubis@suse.cz
Thu Mar 11 11:42:12 CET 2021


Hi!
> > > we need to do some investigation about it.
> > gcc -E foo.c would do expansion for us. But not sure if it's worth of runtime.
> > Because problem of missing definitions will be on other places and we don't want
> > to get rid of definitions. e.g. I planned to add some tag definitions (for
> > "linux-git", ...) as Martin Doucha suggested, but this would not work until
> > we expand macros.
> 
> I was looking into the output of gcc -E but it brings other problems.
> Wouldn't be better instead of patching like this to just replace docparse.c with
> library support to test itself print it's description in json format
> (e.g. --print-json opt)? I was thinking to use the same for shell tests docparse
> (which aren't covered at all yet).

I've been there and tried that that was v1 of the proposal, it did not work.

We can add macro expansion to the docparse instead, it shouldn't be that
hard.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list