title: Unit Testing Frameworks for C
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/65820/unit-testing-c-code">Unit Testing C Code</a>  </p>
  </blockquote>
  
  
  
  <p>I've seen a few questions specific to C++, but I'm really curious about C. I'm trying to add a standard unit test framework into our build environment. My primary goals are to encourage our developers to write unit tests, and to standardize those test so others can run them. Ideally I'd like to run the unit tests as part of our nightly build.</p>
  
  <p>We started some work with CUnit, which worked except that everything ran in one thread and any memory faults caused the unit tests to stop running, which was rather annoying. I also found it incredibly difficult to write the tests, but that might just be unit testing for you.</p>
  
  <p>Does anybody know of good alternatives? Has anybody had any experience with the C++ Unit Testers with C-only code?</p>