Hi people,
I am getting strange errors from the test runner generated by
cxxtestgen.pl. eg:
<error>
error: a brace-enclosed initializer is not allowed here before '{' token
error: invalid in-class initialization of static data member of non-integral type `CxxTest::List'
error: expected identifier before string constant
error: expected `,' or `...' before string constant
error: ISO C++ forbids declaration of `parameter' with no type
error: a brace-enclosed initializer is not allowed here before '{' token
error: invalid in-class initialization of static data member of non-integral type `CxxTest::List'
error: expected identifier before string constant
error: expected `,' or `...' before string constant
error: ISO C++ forbids declaration of `parameter' with no type
</error>
All the errors have the following common pattern like this.
static CxxTest::List Tests_function_name = { 0, 0 };
CxxTest::StaticSuiteDescription suiteDescription_function_name( "/path/to/my/cxxtest_testcase", 21, "function_name", suite_function_name, Tests_function_name );