我有一个4级测试单元 我主要做以下事情:
#include <QtTest>
#include "CategoryTests.cpp"
#include "SerializationTests.cpp"
#include "TaskTests.cpp"
#include "TestTests.cpp"
int main(int argc, char** argv)
{
int status = 0;
{
CategoryTests tc;
status |= QTest::qExec(&tc, argc, argv);
}
{
SerializationTests tc;
status |= QTest::qExec(&tc, argc, argv);
}
{
TaskTests tc;
status |= QTest::qExec(&tc, argc, argv);
}
{
TestTests tc;
status |= QTest::qExec(&tc, argc, argv);
}
return status;
}
但由于某种原因,婴儿床弹出,我无法理解为什么。我请求你的帮助