From: Michael Tremer Date: Tue, 10 Dec 2024 15:24:06 +0000 (+0000) Subject: tests: Fix jail tests after changing the cgroups API X-Git-Tag: 0.9.30~732 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5fca3a55382dd0eeb93b0114e91a4ec24af955e;p=pakfire.git tests: Fix jail tests after changing the cgroups API Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/jail.c b/tests/libpakfire/jail.c index e65a5247d..19aa428d0 100644 --- a/tests/libpakfire/jail.c +++ b/tests/libpakfire/jail.c @@ -162,7 +162,7 @@ static int test_launch_into_cgroup(const struct test* t) { int r = EXIT_FAILURE; // Create a new cgroup - ASSERT_SUCCESS(pakfire_cgroup_open(&cgroup, t->ctx, "pakfire-test", 0)); + ASSERT_SUCCESS(pakfire_cgroup_create(&cgroup, t->ctx, NULL, "pakfire-test", 0)); // Create a new jail ASSERT_SUCCESS(pakfire_jail_create(&jail, t->pakfire)); @@ -228,7 +228,7 @@ static int test_memory_limit(const struct test* t) { // Create cgroup - ASSERT_SUCCESS(pakfire_cgroup_open(&cgroup, t->ctx, "pakfire-test", 0)); + ASSERT_SUCCESS(pakfire_cgroup_create(&cgroup, t->ctx, NULL, "pakfire-test", 0)); // Create jail ASSERT_SUCCESS(pakfire_jail_create(&jail, t->pakfire)); @@ -265,7 +265,7 @@ static int test_pid_limit(const struct test* t) { int r = EXIT_FAILURE; // Create cgroup - ASSERT_SUCCESS(pakfire_cgroup_open(&cgroup, t->ctx, "pakfire-test", 0)); + ASSERT_SUCCESS(pakfire_cgroup_create(&cgroup, t->ctx, NULL, "pakfire-test", 0)); // Create jail ASSERT_SUCCESS(pakfire_jail_create(&jail, t->pakfire));