title: How to catch segmentation fault with Google Test?
body: <p>How do I test that a function won't produce a segmentation fault?</p>
  
  <p>Here what I know right now, I can do:</p>
  
  <pre><code>EXPECT_DEATH(foo(nullParameter))
  </code></pre>
  
  <p>In side the function, a segmentation fault is produce which is the behavior that I want to make fail. The snippet above will make the test pass because that is what is expected, the death of the process.</p>
  
  <p>Now, how can I make it fail?</p>