1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

Tests: Build all tests on x86_64

This builds some previously-disabled tests for x86_64.
This commit is contained in:
Gunnar Beutner 2021-07-07 09:39:21 +02:00 committed by Andreas Kling
parent 3fce0e58e5
commit 75ba74a216
3 changed files with 4 additions and 13 deletions

View file

@ -85,9 +85,8 @@ static void randomize_from(size_t* buffer, size_t len, const Vector<size_t>& val
}
}
// The largest SC_*_params struct is SC_mmap_params with 36 bytes.
static_assert(sizeof(size_t) == 4, "Cannot handle size_t != 4 bytes");
static constexpr size_t fake_params_count = 36 / sizeof(size_t);
// The largest SC_*_params struct is SC_mmap_params with 9 size_ts (36 bytes on x86, 72 on x86_64).
static constexpr size_t fake_params_count = sizeof(Syscall::SC_mmap_params) / sizeof(size_t);
static void do_weird_call(size_t attempt, int syscall_fn, size_t arg1, size_t arg2, size_t arg3, size_t* fake_params)
{