Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Issue 3020069: Use suppressions_mac.txt for Mac-specific reports (Closed)

Created:
10 years, 4 months ago by Timur Iskhodzhanov
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Timur Iskhodzhanov, Alexander Potapenko, pam+watch_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Use suppressions_mac.txt for Mac-specific reports TBR=glider Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55064

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -11 lines) Patch
M tools/valgrind/test_suppressions.py View 2 chunks +16 lines, -11 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Timur Iskhodzhanov
10 years, 4 months ago (2010-08-05 14:02:34 UTC) #1
Alexander Potapenko
10 years, 4 months ago (2010-08-06 10:32:31 UTC) #2
LGTM

On Thu, Aug 5, 2010 at 6:02 PM,  <timurrrr@chromium.org> wrote:
> Reviewers: Alexander Potapenko,
>
> Description:
> Use suppressions_mac.txt for Mac-specific reports
> TBR=glider
>
> Please review this at http://codereview.chromium.org/3020069/show
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
>  M     tools/valgrind/test_suppressions.py
>
>
> Index: tools/valgrind/test_suppressions.py
> ===================================================================
> --- tools/valgrind/test_suppressions.py (revision 55052)
> +++ tools/valgrind/test_suppressions.py (working copy)
> @@ -36,18 +36,16 @@
>       cur_supp = ["{"]
>   return reports,line
>
> -filenames = [
> -  "memcheck/suppressions.txt",
> -]
> -# TODO(timurrrr): Support platform-specific suppressions
> -
> -all_suppressions = []
>  suppressions_root = path_utils.ScriptDir()
>
> -for f in filenames:
> -  supp_filename = os.path.join(suppressions_root, f)
> -  all_suppressions += suppressions.ReadSuppressionsFromFile(supp_filename)
> +supp_filename = os.path.join(suppressions_root,
> +                             "memcheck", "suppressions.txt")
> +common_suppressions = suppressions.ReadSuppressionsFromFile(supp_filename)
>
> +supp_filename = os.path.join(suppressions_root,
> +                             "memcheck", "suppressions_mac.txt")
> +mac_suppressions = suppressions.ReadSuppressionsFromFile(supp_filename)
> +
>  # all_reports is a map {report: list of urls containing this report}
>  all_reports = defaultdict(list)
>
> @@ -58,15 +56,22 @@
>
>  reports_count = 0
>  for r in all_reports:
> +  if set([False]) == set([not re.search("%20Mac%20", url)\
> +                         for url in all_reports[r]]):
> +    # Include mac suppressions if the report is only present on Mac
> +    cur_supp = common_suppressions + mac_suppressions
> +  else:
> +    cur_supp = common_suppressions
> +
>   match = False
> -  for s in all_suppressions:
> +  for s in cur_supp:
>     if s.Match(r.split("\n")):
>       match = True
>       break
>   if not match:
>     reports_count += 1
>     print "==================================="
> -    print "This report observed in:"
> +    print "This report observed at"
>     for url in all_reports[r]:
>       print "  %s" % url
>     print "didn't match any suppressions:"
>
>
>

Powered by Google App Engine
This is Rietveld 408576698