This revision was automatically updated to reflect the committed changes. Closed by commit rGdfbcee286b9b: Prevent deadlocks in death tests. (authored by mboehme).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D152696/new/ https://reviews.llvm.org/D152696 Files: third-party/unittest/UnitTestMain/TestMain.cpp Index: third-party/unittest/UnitTestMain/TestMain.cpp =================================================================== --- third-party/unittest/UnitTestMain/TestMain.cpp +++ third-party/unittest/UnitTestMain/TestMain.cpp @@ -29,6 +29,10 @@ true /* Disable crash reporting */); } + // Use the "threadsafe" test style for death tests -- the "fast" test style + // can cause deadlocks. + testing::GTEST_FLAG(death_test_style) = "threadsafe"; + // Initialize both gmock and gtest. testing::InitGoogleMock(&argc, argv);
Index: third-party/unittest/UnitTestMain/TestMain.cpp =================================================================== --- third-party/unittest/UnitTestMain/TestMain.cpp +++ third-party/unittest/UnitTestMain/TestMain.cpp @@ -29,6 +29,10 @@ true /* Disable crash reporting */); } + // Use the "threadsafe" test style for death tests -- the "fast" test style + // can cause deadlocks. + testing::GTEST_FLAG(death_test_style) = "threadsafe"; + // Initialize both gmock and gtest. testing::InitGoogleMock(&argc, argv);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits