Improve floating point comparisons in unit tests
[alexxy/gromacs.git] / cmake / legacy_and_external.supp
1 # This suppression file is used to run the CTest Unit Tests
2 # All problems in external libraries are excluded
3 # Memory leaks in the legacy code are excluded
4 # Other problems besides memory leaks should NOT be excluded for legacy code
5
6 {
7    libz
8    Memcheck:Cond
9    fun:inflateReset2
10    fun:inflateInit2_
11 }
12
13 # OpenMPI
14 {
15    MPI_Init/Leak
16    Memcheck:Leak
17    ...
18    fun:PMPI_Init
19 }
20 {
21    MPI_Finalize/Leak
22    Memcheck:Leak
23    fun:malloc
24    fun:ompi_proc_all
25    ...
26    fun:_ZN3gmx8finalizeEv
27 }
28 {
29    MPI_Init/Addr4
30    Memcheck:Addr4
31    ...
32    fun:PMPI_Init
33 }
34 {
35    MPI_Init/Addr8
36    Memcheck:Addr8
37    ...
38    fun:PMPI_Init
39 }
40 {
41    MPI_Init/sched_setaffinity
42    Memcheck:Param
43    sched_setaffinity(mask)
44    ...
45    fun:PMPI_Init
46 }
47 {
48    MPI_Init/writev
49    Memcheck:Param
50    writev(vector[...])
51    ...
52    fun:PMPI_Init
53 }
54
55 {
56    gmx_fio_fopen
57    Memcheck:Leak
58    ...
59    fun:gmx_fio_fopen
60 }
61 {
62    new_symbuf
63    Memcheck:Leak
64    ...
65    fun:new_symbuf
66 }
67 {
68    bTimeSet/tMPI_Thread_mutex_init_once
69    Memcheck:Leak
70    ...
71    fun:tMPI_Thread_mutex_init_once
72    fun:tMPI_Thread_mutex_lock
73    fun:bTimeSet
74 }
75 {
76    gmx_ffclose/tMPI_Thread_mutex_init_once
77    Memcheck:Leak
78    ...
79    fun:tMPI_Thread_mutex_init_once
80    fun:tMPI_Thread_mutex_lock
81    fun:gmx_ffclose
82 }
83
84 {
85    mdrun
86    Memcheck:Leak
87    ...
88    obj:*/mdrun*
89 }
90
91 {
92    strdup/strtod
93    Memcheck:Addr8
94    fun:__GI___strncasecmp_l
95    fun:____strtod_l_internal
96 }
97
98
99 #MacOS rules
100 {
101    dyld_register_image_state_change_handler
102    Memcheck:Leak
103    fun:malloc
104    fun:malloc
105    ...
106    fun:dyld_register_image_state_change_handler
107 }
108
109 {
110    __emutls_get_address
111    Memcheck:Leak
112    ...
113    fun:__emutls_get_address
114 }
115
116 {
117    libSystem_initializer
118    Memcheck:Leak
119    ...
120    fun:libSystem_initializer
121 }
122
123 {
124    atexit
125    Memcheck:Leak
126    fun:malloc
127    fun:atexit_register
128 }
129
130 {
131    unw_set_reg
132    Memcheck:Leak
133    ...
134    fun:unw_set_reg
135    fun:__gxx_personality_v0
136 }
137
138 {
139    printf
140    Memcheck:Leak
141    fun:malloc
142    ...
143    fun:__vfprintf
144 }
145
146 {
147    strtof
148    Memcheck:Leak
149    fun:malloc
150    ...
151    fun:strtof_l
152 }
153 {
154    strtod
155    Memcheck:Leak
156    fun:malloc
157    ...
158    fun:strtod_l
159 }
160
161 {
162    scanf
163    Memcheck:Leak
164    ...
165    fun:__svfscanf_l
166 }
167
168 {
169     localtime
170     Memcheck:Leak
171     ...
172     fun:localtime
173 }
174
175 {
176    __cxa_get_globals
177    Memcheck:Leak
178    fun:malloc
179    fun:__cxa_get_globals
180 }
181 {
182    __cxa_get_globals
183    Memcheck:Leak
184    fun:calloc
185    fun:__cxa_get_globals
186    fun:__cxa_throw
187 }
188
189 {
190    _Unwind_RaiseException
191    Memcheck:Leak
192    fun:malloc
193    ...
194    fun:_Unwind_RaiseException
195    fun:__cxa_throw
196 }
197 {
198    posix_memalign
199    Memcheck:Leak
200    ...
201    fun:posix_memalign
202 }
203
204 # Intel compiler on MacOS
205 {
206    __cilkrts_os_mutex_create
207    Memcheck:Leak
208    fun:malloc
209    fun:__cilkrts_os_mutex_create
210 }
211 # Intel compiler with MKL
212 {
213    dlerror
214    Memcheck:Leak
215    ...
216    fun:_dlerror_run
217 }
218 #Intel
219 {
220    strlen
221    Memcheck:Addr8
222    fun:__intel_sse2_strlen
223 }
224 {
225    strlen2
226    Memcheck:Cond
227    fun:__intel_sse2_strlen
228 }
229 {
230    __kmpc_global_thread_num
231    Memcheck:Param
232    sched_setaffinity(mask)
233    ...
234    fun:__kmpc_global_thread_num
235 }
236 {
237    __kmpc_global_thread_num2
238    Memcheck:Cond
239    ...
240    fun:__kmpc_global_thread_num
241 }
242 {
243    __kmpc_global_thread_num3
244    Memcheck:Leak
245    ...
246    fun:__kmpc_global_thread_num
247 }