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

Tycho Andersen tycho.andersen at canonical.com
Wed Feb 3 08:00:47 PST 2016


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



More information about the CRIU mailing list