4.2.1.39 The threads test

  Problem:  Programs that do not support exceptions are more vulnerable to attacks
  Fix By:   Compile with -fexceptions
  Waive If: Program size is an important issue

  Example:  FAIL: threads test because not compiled with -fexceptions

This test checks to make sure that the -fexceptions g++ command line option was used when building the binary. The test is only triggered if the binary uses the pthreads library as single threaded applications can cleanly tidy up after themselves if an exception is generated.

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