source: ThirdParty/JobMarket/tests/CodeChecks/testsuite-memdebug.at

Candidate_v1.6.1
Last change on this file was 9eb71b3, checked in by Frederik Heber <frederik.heber@…>, 8 years ago

Commented out MemDebug include and Memory::ignore.

  • MemDebug clashes with various allocation operators that use a specific placement in memory. It is so far not possible to wrap new/delete fully. Hence, we stop this effort which so far has forced us to put ever more includes (with clashes) into MemDebug and thereby bloat compilation time.
  • MemDebug does not add that much usefulness which is not also provided by valgrind.
  • Property mode set to 100644
File size: 757 bytes
Line 
1AT_SETUP([Checking for present, deactivated MemDebug.hpp include])
2AT_KEYWORDS([CodeCheck MemDebug])
3ok=""
4echo `pwd`
5echo "${#ok[*]} are ok to not contain MemDebug.hpp: ${ok[0]} ${ok[1]}."
6liste=`find ${abs_top_srcdir}/src -name '*.cpp'`
7for file in $liste
8do
9 # check whether its one of the excluded ones
10 found=0
11 for item in $ok
12 do
13 if test "$item" == "`basename $file`"
14 then
15 found=1
16 break
17 fi
18 done
19 # if not, check whether it contains the include if its NOT a unit test
20 if test -z `echo $file | grep unittests`
21 then
22 if test $found -eq 0
23 then
24 AT_CHECK([egrep -q '^//#include.*MemDebug.hpp' $file], 0, [ignore], [ignore], [echo "Could not find MemDebug.hpp include in $file."])
25 fi
26 fi
27done
28AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.