int cgroup_fd = -EBADF;
        pid_t pid;
 
+       if (cg_test_v1_named)
+               return KSFT_SKIP;
+
        cg_test_a = cg_name(root, "cg_test_a");
        cg_test_b = cg_name(root, "cg_test_a/cg_test_b");
        cg_test_c = cg_name(root, "cg_test_a/cg_test_b/cg_test_c");
        int ret = KSFT_FAIL;
        char *grandparent = NULL, *parent = NULL, *child = NULL;
 
+       if (cg_test_v1_named)
+               return KSFT_SKIP;
+
        grandparent = cg_name(root, "cg_test_grandparent");
        parent = cg_name(root, "cg_test_grandparent/cg_test_parent");
        child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child");
        int ret = KSFT_FAIL;
        char *parent = NULL, *child = NULL;
 
+       if (cg_test_v1_named)
+               return KSFT_SKIP;
+
        parent = cg_name(root, "cg_test_parent");
        child = cg_name(root, "cg_test_parent/cg_test_child");
        if (!parent || !child)
        int ret = KSFT_FAIL;
        char *parent = NULL, *child = NULL;
 
-       if (cg_read_strstr(root, "cgroup.controllers", "cpu") ||
+       if (cg_test_v1_named ||
+           cg_read_strstr(root, "cgroup.controllers", "cpu") ||
            cg_write(root, "cgroup.subtree_control", "+cpu")) {
                ret = KSFT_SKIP;
                goto cleanup;
        int ret = KSFT_FAIL;
        char *parent = NULL, *child = NULL;
 
+       if (cg_test_v1_named)
+               return KSFT_SKIP;
+
        parent = cg_name(root, "cg_test_parent");
        child = cg_name(root, "cg_test_parent/cg_test_child");
        if (!parent || !child)
        int ret = KSFT_FAIL;
        char *parent = NULL, *child = NULL;
 
+       if (cg_test_v1_named)
+               return KSFT_SKIP;
+
        parent = cg_name(root, "cg_test_parent");
        child = cg_name(root, "cg_test_parent/cg_test_child");
        if (!parent || !child)
        int ret = KSFT_FAIL;
        char *parent = NULL, *child = NULL;
 
+       if (cg_test_v1_named)
+               return KSFT_SKIP;
+
        parent = cg_name(root, "cg_test_parent");
        child = cg_name(root, "cg_test_parent/cg_test_child");
        if (!parent || !child)
        if (cg_create(grps[2]))
                goto cleanup;
 
-       if (cg_write(grps[1], "cgroup.type", "threaded"))
-               goto cleanup;
-       if (cg_write(grps[2], "cgroup.type", "threaded"))
-               goto cleanup;
+       if (!cg_test_v1_named) {
+               if (cg_write(grps[1], "cgroup.type", "threaded"))
+                       goto cleanup;
+               if (cg_write(grps[2], "cgroup.type", "threaded"))
+                       goto cleanup;
+       }
 
        if (cg_enter_current(grps[1]))
                goto cleanup;