summaryrefslogtreecommitdiff
path: root/src/oom/test-oomd-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/oom/test-oomd-util.c')
-rw-r--r--src/oom/test-oomd-util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/oom/test-oomd-util.c b/src/oom/test-oomd-util.c
index 82a60ad880..19173edcda 100644
--- a/src/oom/test-oomd-util.c
+++ b/src/oom/test-oomd-util.c
@@ -282,7 +282,7 @@ static void test_oomd_system_context_acquire(void) {
"SwapFree: 7604 kB\n", WRITE_STRING_FILE_CREATE) == 0);
assert_se(oomd_system_context_acquire(path, &ctx) == 0);
assert_se(ctx.mem_total == 33275142144);
- assert_se(ctx.mem_used == 23157497856);
+ assert_se(ctx.mem_used == 10975404032);
assert_se(ctx.swap_total == 8589930496);
assert_se(ctx.swap_used == 8582144000);
}
@@ -341,7 +341,7 @@ static void test_oomd_mem_and_swap_free_below(void) {
.swap_total = 20971512 * 1024U,
.swap_used = 20971440 * 1024U,
};
- assert_se(oomd_mem_free_below(&ctx, 2000) == false);
+ assert_se(oomd_mem_available_below(&ctx, 2000) == false);
assert_se(oomd_swap_free_below(&ctx, 2000) == true);
ctx = (OomdSystemContext) {
@@ -350,7 +350,7 @@ static void test_oomd_mem_and_swap_free_below(void) {
.swap_total = 20971512 * 1024U,
.swap_used = 3310136 * 1024U,
};
- assert_se(oomd_mem_free_below(&ctx, 2000) == true);
+ assert_se(oomd_mem_available_below(&ctx, 2000) == true);
assert_se(oomd_swap_free_below(&ctx, 2000) == false);
ctx = (OomdSystemContext) {
@@ -359,7 +359,7 @@ static void test_oomd_mem_and_swap_free_below(void) {
.swap_total = 0,
.swap_used = 0,
};
- assert_se(oomd_mem_free_below(&ctx, 2000) == false);
+ assert_se(oomd_mem_available_below(&ctx, 2000) == false);
assert_se(oomd_swap_free_below(&ctx, 2000) == false);
}