From 594bbbf020b2bca56f6778dacbd31a422a3a18e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Wed, 12 Jan 2022 22:33:43 +0100 Subject: Tests: Test FixedArray completely Except for tangential accessors such as data(), there is no more feature of FixedArray that is untested after this large expansion of its test cases. These tests, with the help of the new NoAllocationGuard, also test the allocation contract that was fixated in the last commit. Hopefully this builds confidence in future Kernel uses of FixedArray as well as its establishment in the real-time parts of the audio subsystem. I'm excited :^) --- AK/NoAllocationGuard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AK') diff --git a/AK/NoAllocationGuard.h b/AK/NoAllocationGuard.h index 19356541dd..e009644196 100644 --- a/AK/NoAllocationGuard.h +++ b/AK/NoAllocationGuard.h @@ -58,7 +58,7 @@ private: #endif } - bool m_allocation_enabled_previously; + bool m_allocation_enabled_previously { true }; }; } -- cgit v1.2.3