Update memcheck description of C++ new and delete
[valgrind.git] / massif / tests / Makefile.am
blobab781fa933197cb7f2df57e9efe88e75d5ddf939
2 include $(top_srcdir)/Makefile.tool-tests.am
4 dist_noinst_SCRIPTS = filter_stderr filter_verbose filter_new_aligned
6 EXTRA_DIST = \
7         alloc-fns-A.post.exp alloc-fns-A.stderr.exp alloc-fns-A.vgtest \
8         alloc-fns-B.post.exp alloc-fns-B.stderr.exp alloc-fns-B.vgtest \
9         basic.post.exp basic.stderr.exp basic.vgtest \
10         basic2.post.exp basic2.stderr.exp basic2.vgtest \
11         big-alloc.post.exp big-alloc.post.exp-64bit big-alloc.post.exp-ppc64 \
12         big-alloc.stderr.exp big-alloc.vgtest \
13         big-alloc.post.exp-x86-freebsd \
14         bug469146.post.exp bug469146.stderr.exp bug469146.vgtest \
15         deep-A.post.exp deep-A.stderr.exp deep-A.vgtest \
16         deep-B.post.exp deep-B.stderr.exp deep-B.vgtest \
17         deep-C.post.exp deep-C.stderr.exp deep-C.vgtest \
18         deep-D.post.exp deep-D.stderr.exp deep-D.vgtest \
19         culling1.stderr.exp culling1.vgtest \
20         culling2.stderr.exp culling2.vgtest \
21         custom_alloc.post.exp custom_alloc.stderr.exp custom_alloc.vgtest \
22         ignored.post.exp ignored.stderr.exp ignored.vgtest \
23         ignoring.post.exp ignoring.stderr.exp ignoring.vgtest \
24         inlinfomalloc.post.exp inlinfomalloc.stderr.exp inlinfomalloc.vgtest \
25         insig.post.exp insig.stderr.exp insig.vgtest \
26         long-names.post.exp long-names.stderr.exp long-names.vgtest \
27         long-time.post.exp long-time.stderr.exp long-time.vgtest \
28         malloc_usable.stderr.exp malloc_usable.vgtest \
29         mmapunmap.post.exp mmapunmap.post.exp-ppc64 \
30         mmapunmap.stderr.exp mmapunmap.vgtest \
31         new-cpp.post.exp new-cpp.stderr.exp new-cpp.vgtest \
32         no-stack-no-heap.post.exp no-stack-no-heap.stderr.exp no-stack-no-heap.vgtest \
33         null.post.exp null.stderr.exp null.vgtest \
34         one.post.exp one.post.exp2 one.stderr.exp one.vgtest \
35         overloaded-new.post.exp overloaded-new.post.exp-mips32 \
36         overloaded-new.stderr.exp overloaded-new.vgtest \
37         pages_as_heap.stderr.exp pages_as_heap.vgtest \
38         peak.post.exp peak.stderr.exp peak.vgtest \
39         peak2.post.exp peak2.stderr.exp peak2.vgtest \
40         realloc.post.exp realloc.stderr.exp realloc.vgtest \
41         thresholds_0_0.post.exp \
42         thresholds_0_0.stderr.exp   thresholds_0_0.vgtest \
43         thresholds_0_10.post.exp    thresholds_0_10.stderr.exp \
44         thresholds_0_10.vgtest \
45         thresholds_10_0.post.exp \
46         thresholds_10_0.stderr.exp  thresholds_10_0.vgtest \
47         thresholds_5_0.post.exp  \
48         thresholds_5_0.stderr.exp   thresholds_5_0.vgtest \
49         thresholds_5_10.post.exp \
50         thresholds_5_10.stderr.exp  thresholds_5_10.vgtest \
51         thresholds_10_10.post.exp \
52         thresholds_10_10.stderr.exp thresholds_10_10.vgtest \
53         zero1.post.exp zero1.stderr.exp zero1.vgtest \
54         zero2.post.exp zero2.stderr.exp zero2.vgtest
56 check_PROGRAMS = \
57         alloc-fns \
58         basic \
59         big-alloc \
60         bug469146 \
61         culling1 culling2 \
62         custom_alloc \
63         deep \
64         ignored \
65         ignoring \
66         inlinfomalloc \
67         insig \
68         long-names \
69         long-time \
70         mmapunmap \
71         malloc_usable \
72         new-cpp \
73         null \
74         one \
75         peak \
76         realloc \
77         thresholds \
78         zero
80 if HAVE_SBRK
81 check_PROGRAMS += pages_as_heap
82 endif
84 if HAVE_ALIGNED_CXX_ALLOC
85 check_PROGRAMS += overloaded-new
86 endif
88 inlinfomalloc_CFLAGS = $(AM_CFLAGS) -w
90 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
91 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
93 # C++ tests
94 bug469146_SOURCES       = bug469146.cpp
95 # -fno-optimize-sibling-calls because otherwise some platforms will have
96 # tail call optimization which messes up --ignore-fn
97 bug469146_CXXFLAGS      = $(AM_CXXFLAGS) -O2 -fno-optimize-sibling-calls @FLAG_W_NO_USE_AFTER_FREE@ @FLAG_W_NO_ATTRIBUTES@
98 new_cpp_SOURCES         = new-cpp.cpp
99 overloaded_new_SOURCES  = overloaded-new.cpp
100 # aligned new needs C++17
101 overloaded_new_CXXFLAGS = $(AM_CXXFLAGS) -Wno-implicit-exception-spec-mismatch -Wno-missing-exception-spec -std=c++17
103 # Suppress warnings for issues we are testing for
104 alloc_fns_CFLAGS        = $(AM_CFLAGS) -Wno-unused-result
105 big_alloc_CFLAGS        = $(AM_CFLAGS) -Wno-unused-result
106 culling1_CFLAGS         = $(AM_CFLAGS) -Wno-unused-result
107 culling2_CFLAGS         = $(AM_CFLAGS) -Wno-unused-result
108 deep_CFLAGS             = $(AM_CFLAGS) -Wno-unused-result
109 ignoring_CFLAGS         = $(AM_CFLAGS) -Wno-unused-result
110 insig_CFLAGS            = $(AM_CFLAGS) -Wno-unused-result
111 long_names_CFLAGS       = $(AM_CFLAGS) -Wno-unused-result
112 one_CFLAGS              = $(AM_CFLAGS) -Wno-unused-result
113 thresholds_CFLAGS       = $(AM_CFLAGS) -Wno-unused-result
114 realloc_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_FREE_NONHEAP_OBJECT@