[CRIU] [PATCH] tests: remember to clean up in some failure cases of cgroup01

Andrew Vagin avagin at virtuozzo.com
Thu Feb 4 13:28:01 PST 2016


Acked-by: Andrew Vagin <avagin at virtuozzo.com>

On Wed, Feb 03, 2016 at 08:00:47AM -0800, Tycho Andersen wrote:
> Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
> ---
>  test/zdtm/live/static/cgroup01.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/zdtm/live/static/cgroup01.c b/test/zdtm/live/static/cgroup01.c
> index 7f964cf..384f860 100644
> --- a/test/zdtm/live/static/cgroup01.c
> +++ b/test/zdtm/live/static/cgroup01.c
> @@ -59,7 +59,7 @@ int main(int argc, char **argv)
>  		sprintf(paux, "%s/%s/%s.%d", dirname, subname, empty, i);
>  		if (mkdir(paux, 0600)) {
>  			pr_perror("mkdir %s", paux);
> -			return 1;
> +			goto out_rs;
>  		}
>  	}
>  
> -- 
> 2.5.0
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list