[libc++] Adjust D_LIBCPP_ENABLE_ASSERTIONS defines in exception_guard tests
authorLouis Dionne <ldionne.2@gmail.com>
Wed, 19 Apr 2023 19:56:06 +0000 (15:56 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Thu, 20 Apr 2023 11:48:59 +0000 (07:48 -0400)
commitdd0b7a59eb48335a7d5bb953c9a2aa9380291171
tree15b6d4f522d04e67de061a72d0fa246fc696dcd4
parent3de3625ef785bb6cd22ba4be6a4dd1826fae1d55
[libc++] Adjust D_LIBCPP_ENABLE_ASSERTIONS defines in exception_guard tests

For the assert.FOO.pass.cpp test, we should be passing _LIBCPP_ENABLE_ASSERTIONS=1
for consistency, even though -D_LIBCPP_ENABLE_ASSERTIONS is equivalent.

For the other test, we shouldn't be forcing assertions to be enabled,
since we already have a CI job that enables assertions by default and
will do the right thing.

Differential Revision: https://reviews.llvm.org/D148736
libcxx/test/libcxx/utilities/assert.exception_guard.no_exceptions.pass.cpp
libcxx/test/libcxx/utilities/exception_guard.no_exceptions.pass.cpp