Fix sorting tests in test groups
[platform/core/test/security-tests.git] / src / framework / src / test_runner.cpp
index fd2d8a2..33a4ef7 100644 (file)
@@ -298,7 +298,7 @@ void TestRunner::RunTests()
             for (auto &collector : m_collectors) {
                 collector.second->CollectCurrentTestGroupName(group.first);
             }
-            list.sort();
+            list.sort([](const TestCasePtr &a, const TestCasePtr &b) { return (*a < *b); });
 
             for (TestCaseList::const_iterator iterator = list.begin();
                  iterator != list.end();