title: cmocka free operation and catching exceptions
body: <p>I started my adventure with <a href="https://api.cmocka.org/" rel="nofollow">cmocka</a> library, and I have two questions.</p>
  
  <ol>
  <li><p>Is it possible to find out if free() operation was made correctly? I mean, I would like to test function which is cleaning up tree structure. I've read about test_free(), but honestly I don't understand idea behind that.</p></li>
  <li><p>The second thing is case of catching standard library exceptions. I know about function <code>expect_assert_failure</code>, but how to use it? For example I would to do something what will throw segmentation fault, but I would like to pass test anyway.</p></li>
  </ol>