ladybird/Tests/Kernel
Lenny Maiorani 2b64d163cd Tests: static vs non-static constexpr variables
Problem:
- `static` variables consume memory and sometimes are less
  optimizable.
- `static const` variables can be `constexpr`, usually.
- `static` function-local variables require an initialization check
  every time the function is run.

Solution:
- If a global `static` variable is only used in a single function then
  move it into the function and make it non-`static` and `constexpr`.
- Make all global `static` variables `constexpr` instead of `const`.
- Change function-local `static const[expr]` variables to be just
  `constexpr`.
2021-05-19 21:21:03 +01:00
..
bind-local-socket-to-symlink.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
bxvga-mmap-kernel-into-userspace.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
crash-fcntl-invalid-cmd.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
elf-execve-mmap-race.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
elf-symbolication-kernel-read-exploit.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
fuzz-syscalls.cpp Tests: static vs non-static constexpr variables 2021-05-19 21:21:03 +01:00
kill-pidtid-confusion.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
mmap-write-into-running-programs-executable-file.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
mprotect-multi-region-mrotect.cpp Kernel: Add a test for multi-region mprotect 2021-05-18 16:50:52 +02:00
munmap-multi-region-unmapping.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
nanosleep-race-outbuf-munmap.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
null-deref-close-during-select.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
null-deref-crash-during-pthread_join.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
path-resolution-race.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
pthread-cond-timedwait-example.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
setpgid-across-sessions-without-leader.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
stress-truncate.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
stress-writeread.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
TestKernelFilePermissions.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
TestKernelPledge.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
TestKernelUnveil.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
uaf-close-while-blocked-in-read.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
unveil-symlinks.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00