]> git.ipfire.org Git - pakfire.git/commitdiff
tests: cgroup: Update function calls
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Dec 2024 17:16:00 +0000 (17:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Dec 2024 17:16:00 +0000 (17:16 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/cgroup.c

index cb5d1de2a51ccdccd7e94378155f1969d6888eac..3e99e055811a022253b6835ca16cae464aba6ba7 100644 (file)
@@ -30,7 +30,7 @@ static int test_create_and_destroy(const struct test* t) {
        int r = EXIT_FAILURE;
 
        // Open a new cgroup
-       ASSERT_SUCCESS(pakfire_cgroup_open(&cgroup, t->ctx, "pakfire-test", 0));
+       ASSERT_SUCCESS(pakfire_cgroup_create(&cgroup, t->ctx, "pakfire-test", 0));
 
        // Destroy the cgroup again
        ASSERT_SUCCESS(pakfire_cgroup_destroy(cgroup));
@@ -57,7 +57,7 @@ static int test_stats(const struct test* t) {
        };
 
        // Open the cgroup
-       ASSERT_SUCCESS(pakfire_cgroup_open(&cgroup, t->ctx, "pakfire-test", 0));
+       ASSERT_SUCCESS(pakfire_cgroup_create(&cgroup, t->ctx, "pakfire-test", 0));
 
        // Create a new jail
        ASSERT_SUCCESS(pakfire_jail_create(&jail, t->pakfire));