summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2023-04-03 14:00:54 -0700
committerCopybara-Service <copybara-worker@google.com>2023-04-03 14:01:45 -0700
commit7ee260c54921571b18b15049304426fe151c1265 (patch)
treeba804363ddf341aa15eac02f3736f46b210067e1
parentb5fd99bbd55ebe1a3488b8ea3717fba089293457 (diff)
downloadgoogletest-git-7ee260c54921571b18b15049304426fe151c1265.tar.gz
Rolled back due to breaking existing tests.
PiperOrigin-RevId: 521555658 Change-Id: I09742faceb82b2b7ceb423e850a8b50d532ad6ff
-rw-r--r--googletest/src/gtest.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index c2581fa0..7832492d 100644
--- a/googletest/src/gtest.cc
+++ b/googletest/src/gtest.cc
@@ -44,7 +44,6 @@
#include <chrono> // NOLINT
#include <cmath>
#include <cstdint>
-#include <cstring>
#include <initializer_list>
#include <iomanip>
#include <ios>
@@ -2982,25 +2981,6 @@ void TestSuite::Run() {
TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater();
- // Ensure our tests are in a deterministic order.
- //
- // We do this by sorting lexicographically on (file, line number), providing
- // an order matching what the user can see in the source code.
- //
- // In the common case the line number comparison shouldn't be necessary,
- // because the registrations made by the TEST macro are executed in order
- // within a translation unit. But this is not true of the manual registration
- // API, and in more exotic scenarios a single file may be part of multiple
- // translation units.
- std::stable_sort(test_info_list_.begin(), test_info_list_.end(),
- [](const TestInfo* const a, const TestInfo* const b) {
- if (const int result = std::strcmp(a->file(), a->file())) {
- return result < 0;
- }
-
- return a->line() < b->line();
- });
-
// Call both legacy and the new API
repeater->OnTestSuiteStart(*this);
// Legacy API is deprecated but still available