1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[fix][unittests][llvm] Fix running unit tests without assertions. [NFCI]

This commit is contained in:
Francesco Petrogalli 2019-12-05 03:23:31 +00:00
parent 1bcb15e5e0
commit 4f5676a2c2

View File

@ -432,6 +432,7 @@ TEST_F(VFShapeAPITest, Parameters_ValidOpenMPLinear) {
} }
TEST_F(VFShapeAPITest, Parameters_Invalid) { TEST_F(VFShapeAPITest, Parameters_Invalid) {
#ifndef NDEBUG
// Wrong order is checked by an asseretion: make sure that the // Wrong order is checked by an asseretion: make sure that the
// assertion is not removed. // assertion is not removed.
EXPECT_DEATH(validParams({{1, VFParamKind::Vector}}), EXPECT_DEATH(validParams({{1, VFParamKind::Vector}}),
@ -439,6 +440,7 @@ TEST_F(VFShapeAPITest, Parameters_Invalid) {
EXPECT_DEATH( EXPECT_DEATH(
validParams({{1, VFParamKind::Vector}, {0, VFParamKind::Vector}}), validParams({{1, VFParamKind::Vector}, {0, VFParamKind::Vector}}),
"Broken parameter list."); "Broken parameter list.");
#endif
// GlobalPredicate is not unique // GlobalPredicate is not unique
EXPECT_FALSE(validParams({{0, VFParamKind::Vector}, EXPECT_FALSE(validParams({{0, VFParamKind::Vector},