catch2/tests/SelfTest
Alecto Irene Perez 06cf2a4724
Apply PR #2297 to devel branch (#2300)
* Apply PR #2297 to devel branch

It turns out that Issue #2272 partially affected the devel branch. When
building tests with C++20, the compiler emits a warning that top-level
comma expressions in array subscripts are depricated. Warnings are
treated as errors, so this caused the build to fail.

This commit adds localized warning suppression
in accordance with this recommendation here:
https://github.com/catchorg/Catch2/pull/2297#discussion_r720848392

Signed-off-by: Alecto Irene Perez <perez.cs@pm.me>

* Fixed unknown pragma warning on old versions of gcc & clang

This commit fixes an unkwown pragma warning on older versions of GCC
and Clang. These older versions don't have a warning for depricated use
of the comma subscript. Because warning suppression is localized, and
only refers to the comma subscript warning, it doesn't affect compiler
warnings in other parts of the code.

Signed-off-by: Alecto Irene Perez <perez.cs@pm.me>

* More #warning backwards compatibility fixes

Signed-off-by: Alecto Irene Perez <perez.cs@pm.me>
2021-10-21 15:47:21 +02:00
..
Baselines Mark !mayfail tests as skipped in the JUnit reporter 2021-10-10 22:21:39 +02:00
IntrospectiveTests Add generateRandomSeed utility to generate randomness seed 2021-10-08 21:35:41 +02:00
Misc Move tests from projects/ to tests/ 2019-12-05 16:00:20 +01:00
TimingTests Increase timing window for min duration tests to 1s 2021-02-20 23:09:02 +01:00
UsageTests Apply PR #2297 to devel branch (#2300) 2021-10-21 15:47:21 +02:00
TestRegistrations.cpp Add consistency-checking event listener to SelfTest 2021-09-15 23:38:43 +02:00
WarnAboutNoTests.cmake Move tests from projects/ to tests/ 2019-12-05 16:00:20 +01:00