Hello All,
I am trying to test legacy C code. I have created a fixture class in namespace.
namespace {
class ABC : public ::testing::Test{
protected:
ABC(){ //some default initializations};
~ABC();
};
Test_F(ABC,genralreject)
{
}
}//end of namespace.
When I am trying to run above code I am getting error saying
"./src/gtest.cc:1995: Failure
Failed
All tests in the same test case must use the same test fixture
class. However, in test case GetDaqListInfo,
you defined test commandsyntaxNRC and test commandsyntaxNRC
using two different test fixture classes. This can happen if
the two classes are from different namespaces or translation
units and have the same name. You should probably rename one
of the classes to put the tests into different test cases."
I have written only one test case still I am getting message
"[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up."
Thank you in advance..!!