[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 08:43:05 CET 2022
Hi Li
>
> diff --git a/include/tst_test.h b/include/tst_test.h
> index 816fab4dd..e514efa76 100644
> --- 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)?
Best Regards
Yang Xu
More information about the ltp
mailing list