Hi,

I'm using CUnit in my company to automate the unit tests for our systems.
I was writing my tests code when I got this error:
"unit_test.h:81: warning: initialization discards qualifiers from pointer target type"
The warning level is a standard of my company too.

I'm writing my code like your document explain:
CU_SuiteInfo suites[] = {
  {
      "Application Core Tests",
      app_core_test_suite_init_func,
      app_core_test_suite_cleanup_func,
      app_core_tests
  },
And so on.

So a ask you:
Is there a reason for CU_TestInfo and CU_SuiteInfo has pName member as char* instead const char*?

At my first look at your source code, I didn't see no problems to change this member to const char*.


Best regards,
Victor

--
GNU/Linux user #446397 - http://counter.li.org