16 Jun 2012 00:23
Leaky Tests Fixlit results
Lei Zhang <thestig <at> chromium.org>
2012-06-15 22:23:49 GMT
2012-06-15 22:23:49 GMT
Hi folks, A couple weeks ago, the Chrome team in LA had a one-day fixlit to tackle leaky tests. We looked at both tests that leak memory according to Valgrind/Heapchecker, and tests that leaked files. Here's some stats and lessons learned from our fixlit. As a team, we: - Attempted to tackle 62 bugs - Triaged 44 bugs - Fixed 7 bugs -- 5 memory leaks, 1 of which affected the shipping product -- 2 file leaks - Made 51 commits - Removed 77 Valgrind / Heapchecker suppressions For file leaks, the solution came down to using ScopedTempDir so the directories can be automatically deleted. One most also use ScopedTempDir correctly by calling CreateUniqueTempDir(), otherwise ScopedTempDir::path() will simply return the current working directory instead. For memory leaks, we noticed there were a lot of stale suppressions. Some of these are due to people fixing leaks but forgetting to remove the suppressions. Other stale suppressions are from tests that no longer exists. We found http://chromium-build-logs.appspot.com/ to be useful for searching old logs to see when a Vaglrind / Heapchecker suppression was last used.(Continue reading)
RSS Feed