4.2.1.13 The glibcxx-assertions test

  Problem:  Compiled C++ code might contain bugs that could have been detected and fixed
  Fix By:   Compile with -D_GLIBCXX_ASSERTIONS
  Waive If: Not compiling C++
  Waive If: Not using functions from libstdc++

  Example:  FAIL: glibcxx-assertions test because compiled without -D_GLIBCXX_ASSERTIONS

This test checks to make sure that the -D_GLIBCXX_ASSERTIONS g+= compiler command line option was used when building binaries. This option is one of several supported by the libstdc++ library and it is used to enable various NULL pointer and bounds checking security features. For more information see:

https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_macros.html

If necessary the test can be disabled via the --skip-glibcxx-assertions option and re-enabled via the --test-glibcxx-assertions option.