提交 01a7e143 编写于 作者: W wangshi

"modifile graphic/vkgl/src/khrgles3/ActsKhrgles3TestSuite.cpp 优化vkgl测试代码"

Signed-off-by: Nwangshi <wangshi@kaihong.com>
上级 89f187db
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
#include <ctime> #include <ctime>
#include "Khrgles3BaseFunc.h" #include "Khrgles3BaseFunc.h"
#include "ActsKhrgles3TestSuite.h" #include "ActsKhrgles3TestSuite.h"
#include "testsuitehead.h"
SHRINK_SUITETEST_HEAD(ActsKhrgles20001TestSuite)
namespace OHOS { namespace OHOS {
using namespace std; using namespace std;
using namespace testing::ext; using namespace testing::ext;
...@@ -27,34 +29,4 @@ namespace OHOS { ...@@ -27,34 +29,4 @@ namespace OHOS {
time_t ActsKhrgles3TestSuite::endTime; time_t ActsKhrgles3TestSuite::endTime;
FuncRunResult ActsKhrgles3TestSuite::runResult; FuncRunResult ActsKhrgles3TestSuite::runResult;
// Preset action of the test suite, which is executed before the first test case
void ActsKhrgles3TestSuite::SetUpTestCase(void)
{
time(&startTime);
RegistPackage();
runResult.numPassed = 0;
runResult.numFailed = 0;
runResult.numNotSupported = 0;
runResult.numWarnings = 0;
runResult.numWaived = 0;
}
// Test suite cleanup action, which is executed after the last test case
void ActsKhrgles3TestSuite::TearDownTestCase(void)
{
time(&endTime);
printf("Test run totals --- Passed[%d]\n", runResult.numPassed);
printf("Test run totals --- Failed[%d]\n", runResult.numFailed);
printf("Test run totals --- Notsupport[%d]\n", runResult.numNotSupported);
printf("Test run totals --- Warnings[%d]\n", runResult.numWarnings);
printf("Test run totals --- Waved[%d]\n", runResult.numWaived);
cout << "testmain end --- COST TIME ["<< (endTime-startTime) << "]" << std::endl;;
}
// Preset action of the test case
void ActsKhrgles3TestSuite::SetUp(void)
{
}
// Cleanup action of the test case
void ActsKhrgles3TestSuite::TearDown(void)
{
}
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册