xref: /freebsd/cddl/usr.sbin/zfsd/tests/zfsd_unittest.supp (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
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# $FreeBSD$
33
34
35# This is a valgrind suppression file used for running zfsd_unittest with
36# valgrind.  It suppress spurious errors generated by the googletest and
37# googlemock libraries.
38#
39# To use, do:
40# valgrind --suppressions=$PWD/zfsd_unittest.supp ./zfsd_unittest
41
42{
43   <insert_a_suppression_name_here>
44   Memcheck:Free
45   fun:free
46   ...
47   fun:__cxa_finalize
48   fun:exit
49   fun:(below main)
50}
51
52{
53   <insert_a_suppression_name_here>
54   Memcheck:Free
55   fun:free
56    ...
57   fun:_ZN7testing8internal27PrettyUnitTestResultPrinter*
58   ...
59   ...
60   fun:main
61}
62
63{
64   <insert_a_suppression_name_here>
65   Memcheck:Free
66   fun:free
67   fun:_ZN7testing*
68   ...
69   fun:main
70}
71
72{
73   <insert_a_suppression_name_here>
74   Memcheck:Free
75   fun:free
76   ...
77   fun:_Z41__static_initialization_and_destruction_0ii
78   ...
79}
80
81{
82   <insert_a_suppression_name_here>
83   Memcheck:Free
84   fun:free
85   ...
86   fun:_ZN7testing8internal8MockSpec*
87   ...
88   fun:_ZN7testing4Test3RunEv
89   fun:_ZN7testing8internal12TestInfoImpl3RunEv
90   fun:_ZN7testing8TestCase3RunEv
91   fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
92}
93
94{
95   <insert_a_suppression_name_here>
96   Memcheck:Free
97   fun:free
98   ...
99   fun:_ZN7testing8internal14FunctionMocker*
100   ...
101}
102
103{
104   <insert_a_suppression_name_here>
105   Memcheck:Cond
106   obj:/lib/libc.so.7
107   obj:/lib/libc.so.7
108   fun:snprintf
109   fun:_ZN7testing45_GLOBAL__N_src_gmock_all.cc_00000000_917CAD5926PrintByteSegmentInObjectToEPKhmmPSo
110   fun:_ZN7testing9internal220PrintBytesInObjectToEPKhmPSo
111   fun:_ZN7testing9internal220TypeWithoutFormatterI8ZfsEventLb0EE10PrintValueERKS2_PSo
112   fun:_ZN7testing9internal2lsIcSt11char_traitsIcE8ZfsEventEERSt13basic_ostreamIT_T0_ES9_RKT1_
113   fun:_ZN16testing_internal26DefaultPrintNonContainerToI8ZfsEventEEvRKT_PSo
114   fun:_ZN7testing8internal14DefaultPrintToI8ZfsEventEEvcNS0_13bool_constantILb0EEERKT_PSo
115   fun:_ZN7testing8internal7PrintToI8ZfsEventEEvRKT_PSo
116   fun:_ZN7testing8internal16UniversalPrinterIK8ZfsEventE5PrintERS3_PSo
117   fun:_ZN7testing8internal16UniversalPrinterIRK8ZfsEventE5PrintES4_PSo
118}
119
120{
121   <insert_a_suppression_name_here>
122   Memcheck:Cond
123   ...
124   fun:snprintf
125   ...
126   fun:_ZN7testing9internal220PrintBytesInObjectToEPKhmPSo
127   ...
128}
129{
130   <insert_a_suppression_name_here>
131   Memcheck:Value8
132   ...
133   fun:snprintf
134   ...
135   fun:_ZN7testing9internal220PrintBytesInObjectToEPKhmPSo
136   ...
137}
138
139