[LTP] [PATCH 1/2] Implement tst_setup_netns() helper function

Petr Vorel pvorel@suse.cz
Fri Nov 25 17:43:13 CET 2022


Hi Martin,
> Namespace setup boilerplate for network tests is getting more complicated
> with the need to check or modify some sysfiles. Move it into LTP library.
+1

Reviewed-by: Petr Vorel <pvorel@suse.cz>

>  #define TST_NO_DEFAULT_MAIN
>  #include "tst_test.h"
>  #include "tst_net.h"
>  #include "tst_private.h"
> +#include "lapi/namespaces_constants.h"
WDYT about adding <sched.h> to lapi/namespaces_constants.h?
(not related to this patchset at all).

Kind regards,
Petr


More information about the ltp mailing list