diff options
| author | Masashi Fujita | 2022-11-09 22:47:55 +0900 |
|---|---|---|
| committer | GitHub | 2022-11-09 14:47:55 +0100 |
| commit | b7f4a2efb808e8d154874e168cec8e0aaf70bd06 (patch) | |
| tree | 3b58a5828a2799be853c6c81c34e57011665c283 /src/catch2/internal/catch_test_case_registry_impl.cpp | |
| parent | f8006aa6d41921ef0860da51206c4d958c167a0b (diff) | |
| download | catch3-b7f4a2efb808e8d154874e168cec8e0aaf70bd06.tar.gz | |
Add support for PlayStation platforms (#2562)
* Add new `CATCH_CONFIG` option for using `std::getenv`, because PS does not support env vars
* Add PS to platforms that have disabled posix signals.
* Small workaround for PS toolchain bug that prevents it from compiling `std::set` with lambda based comparator.
Diffstat (limited to 'src/catch2/internal/catch_test_case_registry_impl.cpp')
| -rw-r--r-- | src/catch2/internal/catch_test_case_registry_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_test_case_registry_impl.cpp b/src/catch2/internal/catch_test_case_registry_impl.cpp index b61fd661..4b3d2e47 100644 --- a/src/catch2/internal/catch_test_case_registry_impl.cpp +++ b/src/catch2/internal/catch_test_case_registry_impl.cpp @@ -89,7 +89,7 @@ namespace Catch { TestCaseInfo const* rhs ) { return *lhs < *rhs; }; - std::set<TestCaseInfo const*, decltype(testInfoCmp)> seenTests(testInfoCmp); + std::set<TestCaseInfo const*, decltype(testInfoCmp) &> seenTests(testInfoCmp); for ( auto const& test : tests ) { const auto infoPtr = &test.getTestCaseInfo(); const auto prev = seenTests.insert( infoPtr ); |