[compiler-rt] [scudo] Add `__scudo_get_info` symbol to export stats to a buffer. (PR #130273)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 10:36:45 PDT 2025
================
@@ -333,6 +333,12 @@ void ScudoCombinedTest<Config>::BasicTest(scudo::uptr SizeLog) {
Allocator->printStats();
Allocator->printFragmentationInfo();
+
+ {
+ char buffer[256] = {0};
+ EXPECT_LE(0, Allocator->getStats(buffer, sizeof(buffer)));
+ EXPECT_LE(0, Allocator->getFragmentationInfo(buffer, sizeof(buffer)));
----------------
ChiaHungDuan wrote:
Can we change these to EXPECT_GT(Allocator->..., 0);
Same as the uses in the tests
https://github.com/llvm/llvm-project/pull/130273
More information about the llvm-commits
mailing list