[PATCH] D122251: [lit] Use sharding for GoogleTest format

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 02:38:06 PDT 2022


vitalybuka added a comment.

Also there is not output of failure
previously we had something

  GTEST_OUTPUT=json:/usr/local/google/home/vitalybuka/tmp/bot/llvm_build_asan/unittests/Analysis/./AnalysisTests-LLVM-Unit-1704385-29-157.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=157 GTEST_SHARD_INDEX=29 /usr/local/google/home/vitalybuka/tmp/bot/llvm_build_asan/unittests/Analysis/./AnalysisTests
  Note: This is test shard 30 of 157.
  [==========] Running 4 tests from 4 test suites.
  [----------] Global test environment set-up.
  [----------] 1 test from IsPotentiallyReachableTest
  [ RUN      ] IsPotentiallyReachableTest.SimpleLoop1
  [       OK ] IsPotentiallyReachableTest.SimpleLoop1 (0 ms)
  [----------] 1 test from IsPotentiallyReachableTest (0 ms total)
  
  [----------] 1 test from IRSimilarityIdentifier
  [ RUN      ] IRSimilarityIdentifier.IntrinsicCommutative
  [       OK ] IRSimilarityIdentifier.IntrinsicCommutative (1 ms)
  [----------] 1 test from IRSimilarityIdentifier (1 ms total)
  
  [----------] 1 test from ScalarEvolutionsTest
  [ RUN      ] ScalarEvolutionsTest.ComputeMaxTripCountFromMultiDemArray
  [       OK ] ScalarEvolutionsTest.ComputeMaxTripCountFromMultiDemArray (1 ms)
  [----------] 1 test from ScalarEvolutionsTest (1 ms total)
  
  [----------] 1 test from ComputeKnownBitsTest
  [ RUN      ] ComputeKnownBitsTest.ComputeKnownBitsAddWithRangeNoOverlap
  [       OK ] ComputeKnownBitsTest.ComputeKnownBitsAddWithRangeNoOverlap (0 ms)
  [----------] 1 test from ComputeKnownBitsTest (0 ms total)
  
  [----------] Global test environment tear-down
  [==========] 4 tests from 4 test suites ran. (3 ms total)
  [  PASSED  ] 4 tests.
  
  =================================================================
  ==1767424==ERROR: LeakSanitizer: detected memory leaks
  
  Direct leak of 80 byte(s) in 1 object(s) allocated from:
      #0 0xc9f0b7 in operator new(unsigned long) /usr/local/google/home/vitalybuka/tmp/bot/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:95:3
      #1 0xd1e63f in (anonymous namespace)::IsPotentiallyReachableTest::ExpectPath(bool)::IsPotentiallyReachableTestPass::initialize() /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/unittests/Analysis/CFGTest.cpp:80:25
      #2 0xd1c5df in (anonymous namespace)::IsPotentiallyReachableTest::ExpectPath(bool) /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/unittests/Analysis/CFGTest.cpp:117:29
      #3 0x230b53c in HandleExceptionsInMethodIfSupported<testing::Test, void> /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc
      #4 0x230b53c in testing::Test::Run() /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2508:5
      #5 0x230fbab in testing::TestInfo::Run() /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2684:11
      #6 0x231103f in testing::TestSuite::Run() /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:2816:28
      #7 0x233d3ea in testing::internal::UnitTestImpl::RunAllTests() /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:5338:44
      #8 0x233be4c in HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc
      #9 0x233be4c in testing::UnitTest::Run() /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/googletest/src/gtest.cc:4925:10
      #10 0x22eea08 in RUN_ALL_TESTS /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/googletest/include/gtest/gtest.h:2472:46
      #11 0x22eea08 in main /usr/local/google/home/vitalybuka/src/llvm.git/llvm-project/llvm/utils/unittest/UnitTestMain/TestMain.cpp:55:10
      #12 0x7f5876dd37fc in __libc_start_main csu/../csu/libc-start.c:332:16
  
  SUMMARY: AddressSanitizer: 80 byte(s) leaked in 1 allocation(s).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122251/new/

https://reviews.llvm.org/D122251



More information about the llvm-commits mailing list