[LTP] [PATCH v2 2/3] lib: enhance .save_restore to support set expected value

Li Wang liwang@redhat.com
Thu Mar 10 08:53:25 CET 2022


> > --- a/include/tst_test.h
> > +++ b/include/tst_test.h
> > @@ -259,7 +259,7 @@ struct tst_test {
> >        * NULL terminated array of (/proc, /sys) files to save
> >        * before setup and restore after cleanup
> >        */
> > -     const char * const *save_restore;
> > +     const struct tst_path_val const *save_restore;
> Ci complains about duplicate const see the following url
>
> https://github.com/linux-test-project/ltp/runs/5491806027?check_suite_focus=true#step:10:19
>
> How about using const struct tst_path_val *save_restore like
> other struct pointer( struct tst_cap *caps, const struct tst_tag *tags)?
>

Yes, good catch. Can you send a patch to fix the compiling issue or I do
that?

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220310/3078b22f/attachment-0001.htm>


More information about the ltp mailing list