You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cxxtest has difficulties parsing derived classes. Consider the following code:
#include "cxxtest/TestSuite.h"
class MyTestBase : public CxxTest::TestSuite
{};
class MyTest : public MyTestBase
{
public:
void test1()
{}
};
class MyTest2 : public MyTestBase
{
public:
void test2()
{}
};
After calling
python-2.7\python cxxtest\bin\cxxtestgen --have-eh --have-std --part -o mytest.cpp MyTest.h
The generated mytest.cpp erroneously creates test1() test case for MyTest2 suite, which obviously results in compilation error "error C2039: 'test1' : is not a member of 'MyTest2'" later on. Below is a generated mytest.cpp
cxxtest has difficulties parsing derived classes. Consider the following code:
After calling
python-2.7\python cxxtest\bin\cxxtestgen --have-eh --have-std --part -o mytest.cpp MyTest.h
The generated mytest.cpp erroneously creates test1() test case for MyTest2 suite, which obviously results in compilation error "error C2039: 'test1' : is not a member of 'MyTest2'" later on. Below is a generated mytest.cpp
Renaming MyTest to MyNewTest makes the problem go.
What I found remarkable for the same version of Python (2.7.3) the issue shows up on Windows only, not on Linux.
The text was updated successfully, but these errors were encountered: