File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change 44
44
#include < chrono> // NOLINT
45
45
#include < cmath>
46
46
#include < cstdint>
47
- #include < cstring>
48
47
#include < initializer_list>
49
48
#include < iomanip>
50
49
#include < ios>
@@ -2982,25 +2981,6 @@ void TestSuite::Run() {
2982
2981
2983
2982
TestEventListener* repeater = UnitTest::GetInstance ()->listeners ().repeater ();
2984
2983
2985
- // Ensure our tests are in a deterministic order.
2986
- //
2987
- // We do this by sorting lexicographically on (file, line number), providing
2988
- // an order matching what the user can see in the source code.
2989
- //
2990
- // In the common case the line number comparison shouldn't be necessary,
2991
- // because the registrations made by the TEST macro are executed in order
2992
- // within a translation unit. But this is not true of the manual registration
2993
- // API, and in more exotic scenarios a single file may be part of multiple
2994
- // translation units.
2995
- std::stable_sort (test_info_list_.begin (), test_info_list_.end (),
2996
- [](const TestInfo* const a, const TestInfo* const b) {
2997
- if (const int result = std::strcmp (a->file (), a->file ())) {
2998
- return result < 0 ;
2999
- }
3000
-
3001
- return a->line () < b->line ();
3002
- });
3003
-
3004
2984
// Call both legacy and the new API
3005
2985
repeater->OnTestSuiteStart (*this );
3006
2986
// Legacy API is deprecated but still available
You can’t perform that action at this time.
0 commit comments