~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/strip-valgrind

  • Committer: Monty Taylor
  • Date: 2010-10-12 20:20:44 UTC
  • mto: (1842.1.3 build) (1843.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1843.
  • Revision ID: mordred@inaugust.com-20101012202044-yfrmnmkznvkqfxe4
Added support for valgrind suppressions.
Run strip-valgrind as part of make valgrind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
17
 
18
18
current_test= None
19
 
in_leak_summar= False
20
 
new_current_test=True
 
19
in_leak_summary= False
 
20
in_suppression= False
 
21
new_current_test= True
21
22
results=[]
22
23
summary={}
23
24
total_warning_count=0
28
29
    in_leak_summary=False
29
30
    new_current_test=True
30
31
    continue
 
32
  if line.strip() == "{":
 
33
    in_suppression= True
 
34
    results.append("Suppression:\n{\n")
 
35
    continue
 
36
  if line.strip() == "}":
 
37
    in_suppression= False
 
38
    results.append("}\n")
 
39
    continue
 
40
  if in_suppression:
 
41
    results.append(line)
 
42
    continue
 
43
 
 
44
 
31
45
  if line[:2] != "==":
32
46
    continue
33
47
  valgrind_command= line.split("==")[2]