summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorkleines Filmröllchen <malu.bertsch@gmail.com>2022-01-12 22:33:43 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-13 11:17:44 +0100
commit594bbbf020b2bca56f6778dacbd31a422a3a18e9 (patch)
treee130042d4fa8047bf30630aa7b197bf1251f8a1f /AK
parent1d144ed6fcc1768a6cce7408bfb633ed7849d847 (diff)
downloadserenity-594bbbf020b2bca56f6778dacbd31a422a3a18e9.zip
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 :^)
Diffstat (limited to 'AK')
-rw-r--r--AK/NoAllocationGuard.h2
1 files changed, 1 insertions, 1 deletions
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 };
};
}