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

xuyang2018.jy@fujitsu.com xuyang2018.jy@fujitsu.com
Thu Mar 10 09:01:08 CET 2022


Hi Li
>      > --- 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?
Of course, you can do it.

Best Regards
Yang Xu
>
> --
> Regards,
> Li Wang


More information about the ltp mailing list