11 Commits

Author SHA1 Message Date
Abhina Sree
04acf1177e
[gtest] Enable zos for death test support (#94623)
This patch implements the following change to enable zos for death test
support. https://github.com/google/googletest/pull/4527
2024-06-06 13:30:56 -04:00
Hans Wennborg
9625b74cdb [gtest] Disable new posix::FOpen Windows implementation for now
The new implementation was brought in with the gtest update in
a866ce789eb99da4d7a486eeb60a53be6c75f4fd, but it crashes when
building with rpmalloc, see
https://github.com/llvm/llvm-project/pull/65823#issuecomment-1739820534

Comment out the new implementation basically gives us the code
before the gtest update.
2023-09-28 21:11:09 +02:00
Haowei Wu
a866ce789e Reland "Update GoogleTest to v1.14.0 (#65823)"
This patch reland 54c1a9b20d89e85cd60d002c77b34c00f36520f4, which
updates GoogleTest to v1.14.0. This patch fixes bots failures caused
by the early patch.
2023-09-13 14:17:24 -07:00
Haowei Wu
499d713bcb Revert "Update GoogleTest to v1.14.0 (#65823)"
This reverts commit 54c1a9b20d89e85cd60d002c77b34c00f36520f4.
It breaks a few llvm bots.
2023-09-12 11:44:13 -07:00
Zero Omega
54c1a9b20d
Update GoogleTest to v1.14.0 (#65823)
This PR updates GoogleTest to v1.14.0 . It also updates the Clang
ASTTest to fix a compatibility issue with the new GoogleTest.
2023-09-12 10:32:26 -07:00
Sam McCall
fe8a168161 [unittest] teach gTest to print entries of DenseMap as pairs
When an assertion like the following fails:
   EXPECT_THAT(map, ElementsAre(Pair("p", "nullable"))));
Error message before:
   Actual: { 40-byte object <E8-A5 9C-7F 25-37 00-00 58-7E 51-51 D0-7F 00-00 00-00 00-00 00-00 00-00 01-00 00-00 00-00 00-00 00-DA C7-7F 25-37 00-00> }
After:
   Actual: { ("p", "nonnull") }

It is not ideal that we need to refer directly to DenseMapPair inside the
internal namespace, but I believe the practical maintenance risk is low.
This change is covered by DenseMap's unittests, as we've covered SmallString etc
in the past.

Differential Revision: https://reviews.llvm.org/D153930
2023-06-28 11:29:52 +02:00
Haojian Wu
ca431a4fcb Remove an extra // in the IWYU pragma for gtest-matchers.h
Differential Revision: https://reviews.llvm.org/D146022
2023-03-14 13:11:53 +01:00
Kazu Hirata
7b31c57d69 [gtest] Use std::optional instead of llvm::Optional (NFC)
This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-14 15:26:28 -08:00
Tom Stellard
a11cd0d94e Move googletest to the third-party directory
Rre-commit of 59052468c3e38cab15582cefbb5133fd4c2ffce5 with a typo
fix in compiler-rt/CMakeLists.txt
2022-11-09 15:28:08 -08:00
Tom Stellard
8a084f68c8 Revert "Move googletest to the third-party directory"
This reverts commit 59052468c3e38cab15582cefbb5133fd4c2ffce5.

It looks like this patch breaks the build when compiler-rt is passed to
LLVM_ENABLE_PROJECTS instead of LLVM_ENABLE_RUNTIMES.
2022-11-09 11:34:59 -08:00
Tom Stellard
59052468c3 Move googletest to the third-party directory
This will help improve the project's layering, so that sub-projects
that don't actually need any llvm code can still use googletest
without having to reference code in the llvm directory.

This will also make it easier to consolidate and simplify the standalone
build configurations.

Reviewed By: stellaraccident, lattner, probinson, phosek

Differential Revision: https://reviews.llvm.org/D131919
2022-11-09 11:10:26 -08:00