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