0001-valgrind-filter_xml_frames-do-not-filter-usr.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From d1dea3c2bcf1e22baab39e2c0b8ca59db8a5bc37 Mon Sep 17 00:00:00 2001
  2. From: Randy MacLeod <Randy.MacLeod@windriver.com>
  3. Date: Mon, 13 May 2019 17:12:21 -0400
  4. Subject: [PATCH 1/2] valgrind: filter_xml_frames: do not filter /usr
  5. filter_xml_frames is intended to filter system paths under
  6. '/usr' that vary from platform to platform. In the ptest case
  7. for Yocto's valgrind, the ptest executables are placed under:
  8. /usr/lib/valgrind/ptest
  9. and if these frames are filtered out, then the 'drd' tests fail
  10. the comparision between exepected and actual output.
  11. Changing this filter allows the comparison to succeed without
  12. any negative impact.
  13. Upstream-Status: Inappropriate [Yocto specific]
  14. Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
  15. ---
  16. tests/filter_xml_frames | 3 ++-
  17. 1 file changed, 2 insertions(+), 1 deletion(-)
  18. diff --git a/tests/filter_xml_frames b/tests/filter_xml_frames
  19. index f1fa3f070..04fbc82de 100755
  20. --- a/tests/filter_xml_frames
  21. +++ b/tests/filter_xml_frames
  22. @@ -47,7 +47,8 @@ while (my $line = <>)
  23. $has_function_name = 1 if ($line =~ /<fn>/);
  24. # This may require tweaking; currently /lib and /usr/lib are matched
  25. $has_system_obj = 1 if ($line =~ /<obj>\/lib/);
  26. - $has_system_obj = 1 if ($line =~ /<obj>\/usr\/lib/);
  27. +# for Yocto, skip /usr since tests are under /usr/lib/...
  28. +# $has_system_obj = 1 if ($line =~ /<obj>\/usr\/lib/);
  29. }
  30. }
  31. --
  32. 2.17.0