summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-11-05 10:17:12 +0000
committer Paul Duffin <paulduffin@google.com> 2022-11-07 14:12:11 +0000
commit780a185ede7a396ea4f4bc659d4f20537a8e3621 (patch)
treeb36944af9e25ae4e3b3a32c43769d63f833b3f2e /java/java_test.go
parentb43191c90c6088b0f87c1cfa5b8c8a4fb17907b1 (diff)
Avoid loss of ninja_deps events
Previously, writeDepFile was passed a copy of the main EventHandler to which it then added an event. Adding an event requires appending information to slices in the EventHandler structure. As the slices are a copy the addition only affects the copy and are not present in the EventHandler which is written out as part of the metrics. This change fixes that by passing a pointer to an EventHandler into writeDepFile. For consistency it also replaces a few other uses of EventHandler with *EventHandler instead. Bug: 257590265 Test: m nothing # Check generated text metrics to make sure they don't contain ninja_deps. # Apply this change. m nothing # Check generated text metrics to make sure they do contain ninja_deps. Change-Id: I0fa0f2b08844cb7c7b4e99b37602703deb43ad20
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions