Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 645b6c45a3893abfb98761d4d1ff44c8aff16d59
      
https://github.com/WebKit/WebKit/commit/645b6c45a3893abfb98761d4d1ff44c8aff16d59
  Author: Vassili Bykov <[email protected]>
  Date:   2026-05-18 (Mon, 18 May 2026)

  Changed paths:
    M Tools/TestWebKitAPI/Tests/WTF/InlineMap.cpp

  Log Message:
  -----------
  InlineMap RefPtr tests should drain the RefLogger buffer
https://bugs.webkit.org/show_bug.cgi?id=315058
rdar://177385221

Reviewed by Dan Hecht.

WTF_InlineMap.RefPtrKeys and RefPtrValues leave ref()/deref() entries in the 
global
RefLogger buffer, so the very next test (WTF_InlineMap.RefKeys) sees the 
accumulated
activity instead of just its own.

This patch wraps each test body in an inner scope so the RefPtrs are destroyed 
first, then
calls takeLogStr() to clear the log, matching the pattern in other WTF tests.

Tests: self-testing.
Canonical link: https://commits.webkit.org/313454@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to