xref: /freebsd/cddl/usr.sbin/zfsd/tests/zfsd_unittest.supp (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1#-
2# Copyright (c) 2012 Spectra Logic Corporation
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8# 1. Redistributions of source code must retain the above copyright
9#    notice, this list of conditions, and the following disclaimer,
10#    without modification.
11# 2. Redistributions in binary form must reproduce at minimum a disclaimer
12#    substantially similar to the "NO WARRANTY" disclaimer below
13#    ("Disclaimer") and any redistribution must be conditioned upon
14#    including a substantially similar Disclaimer requirement for further
15#    binary redistribution.
16#
17# NO WARRANTY
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
21# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22# HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28# POSSIBILITY OF SUCH DAMAGES.
29#
30# Authors: Alan Somers     (Spectra Logic Corporation)
31#
32
33
34# This is a valgrind suppression file used for running zfsd_unittest with
35# valgrind.  It suppress spurious errors generated by the googletest and
36# googlemock libraries.
37#
38# To use, do:
39# valgrind --suppressions=$PWD/zfsd_unittest.supp ./zfsd_unittest
40
41{
42   <insert_a_suppression_name_here>
43   Memcheck:Free
44   fun:free
45   ...
46   fun:__cxa_finalize
47   fun:exit
48   fun:(below main)
49}
50
51{
52   <insert_a_suppression_name_here>
53   Memcheck:Free
54   fun:free
55    ...
56   fun:_ZN7testing8internal27PrettyUnitTestResultPrinter*
57   ...
58   ...
59   fun:main
60}
61
62{
63   <insert_a_suppression_name_here>
64   Memcheck:Free
65   fun:free
66   fun:_ZN7testing*
67   ...
68   fun:main
69}
70
71{
72   <insert_a_suppression_name_here>
73   Memcheck:Free
74   fun:free
75   ...
76   fun:_Z41__static_initialization_and_destruction_0ii
77   ...
78}
79
80{
81   <insert_a_suppression_name_here>
82   Memcheck:Free
83   fun:free
84   ...
85   fun:_ZN7testing8internal8MockSpec*
86   ...
87   fun:_ZN7testing4Test3RunEv
88   fun:_ZN7testing8internal12TestInfoImpl3RunEv
89   fun:_ZN7testing8TestCase3RunEv
90   fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
91}
92
93{
94   <insert_a_suppression_name_here>
95   Memcheck:Free
96   fun:free
97   ...
98   fun:_ZN7testing8internal14FunctionMocker*
99   ...
100}
101
102{
103   <insert_a_suppression_name_here>
104   Memcheck:Cond
105   obj:/lib/libc.so.7
106   obj:/lib/libc.so.7
107   fun:snprintf
108   fun:_ZN7testing45_GLOBAL__N_src_gmock_all.cc_00000000_917CAD5926PrintByteSegmentInObjectToEPKhmmPSo
109   fun:_ZN7testing9internal220PrintBytesInObjectToEPKhmPSo
110   fun:_ZN7testing9internal220TypeWithoutFormatterI8ZfsEventLb0EE10PrintValueERKS2_PSo
111   fun:_ZN7testing9internal2lsIcSt11char_traitsIcE8ZfsEventEERSt13basic_ostreamIT_T0_ES9_RKT1_
112   fun:_ZN16testing_internal26DefaultPrintNonContainerToI8ZfsEventEEvRKT_PSo
113   fun:_ZN7testing8internal14DefaultPrintToI8ZfsEventEEvcNS0_13bool_constantILb0EEERKT_PSo
114   fun:_ZN7testing8internal7PrintToI8ZfsEventEEvRKT_PSo
115   fun:_ZN7testing8internal16UniversalPrinterIK8ZfsEventE5PrintERS3_PSo
116   fun:_ZN7testing8internal16UniversalPrinterIRK8ZfsEventE5PrintES4_PSo
117}
118
119{
120   <insert_a_suppression_name_here>
121   Memcheck:Cond
122   ...
123   fun:snprintf
124   ...
125   fun:_ZN7testing9internal220PrintBytesInObjectToEPKhmPSo
126   ...
127}
128{
129   <insert_a_suppression_name_here>
130   Memcheck:Value8
131   ...
132   fun:snprintf
133   ...
134   fun:_ZN7testing9internal220PrintBytesInObjectToEPKhmPSo
135   ...
136}
137
138