diff options
Diffstat (limited to 'lib/scudo/standalone/tests/quarantine_test.cpp')
-rw-r--r-- | lib/scudo/standalone/tests/quarantine_test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/scudo/standalone/tests/quarantine_test.cpp b/lib/scudo/standalone/tests/quarantine_test.cpp index d7453aa42..28baf8feb 100644 --- a/lib/scudo/standalone/tests/quarantine_test.cpp +++ b/lib/scudo/standalone/tests/quarantine_test.cpp @@ -213,7 +213,9 @@ TEST(ScudoQuarantineTest, GlobalQuarantine) { Quarantine.drainAndRecycle(&Cache, Cb); EXPECT_EQ(Cache.getSize(), 0UL); - Quarantine.printStats(); + scudo::ScopedString Str(1024); + Quarantine.getStats(&Str); + Str.output(); } void *populateQuarantine(void *Param) { @@ -236,5 +238,7 @@ TEST(ScudoQuarantineTest, ThreadedGlobalQuarantine) { for (scudo::uptr I = 0; I < NumberOfThreads; I++) pthread_join(T[I], 0); - Quarantine.printStats(); + scudo::ScopedString Str(1024); + Quarantine.getStats(&Str); + Str.output(); } |