mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 07:02:25 +00:00
graphictest修改排序
Signed-off-by: 王德海 <wangdehai2@huawei.com> Change-Id: I5034aeb6de3d702c2d1e63f38dd51ff4b2a48857
This commit is contained in:
parent
9facb7dabe
commit
849e52664f
@ -75,7 +75,9 @@ std::vector<const TestDefInfo*> TestDefManager::GetTestInfosByType(RSGraphicTest
|
||||
|
||||
static inline bool Cmp(const TestDefInfo* info1, const TestDefInfo* info2)
|
||||
{
|
||||
return info1->filePath < info2->filePath;
|
||||
std::string s1 = info1->filePath.substr(0, info1->filePath.rfind("/") + 1) + info1->testCaseName + info1->testName;
|
||||
std::string s2 = info2->filePath.substr(0, info2->filePath.rfind("/") + 1) + info2->testCaseName + info2->testName;
|
||||
return s1 < s2;
|
||||
}
|
||||
|
||||
std::vector<const TestDefInfo*> TestDefManager::GetAllTestInfos() const
|
||||
|
Loading…
Reference in New Issue
Block a user