diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-07 09:39:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-07 15:29:18 +0200 |
commit | 75ba74a21617ca78e60e35556082e68cb32aca14 (patch) | |
tree | 7376d675a52957faf6d26bd3491e34424a8a0c2a /Tests/Kernel | |
parent | 3fce0e58e51e268d9ef1e09665a9fe9dac2ba340 (diff) | |
download | serenity-75ba74a21617ca78e60e35556082e68cb32aca14.zip |
Tests: Build all tests on x86_64
This builds some previously-disabled tests for x86_64.
Diffstat (limited to 'Tests/Kernel')
-rw-r--r-- | Tests/Kernel/fuzz-syscalls.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/Kernel/fuzz-syscalls.cpp b/Tests/Kernel/fuzz-syscalls.cpp index 96b7c1207b..e51a39824b 100644 --- a/Tests/Kernel/fuzz-syscalls.cpp +++ b/Tests/Kernel/fuzz-syscalls.cpp @@ -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) { |