Skip to content

Commit b50f044

Browse files
authored
Disable a part of the Syntax unit tests under no-asserts. (#7644)
This is a quick fix to get the no-asserts bot back to passing; there may be a better way to clean up the code later.
1 parent a8b7033 commit b50f044

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unittests/Syntax/TypeSyntaxTests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,15 @@ TEST(TypeSyntaxTest, MetatypeTypeWithAPIs) {
344344
.print(OS);
345345
ASSERT_EQ(OS.str(), "T.Protocol");
346346
}
347+
348+
#ifndef NDEBUG
347349
ASSERT_DEATH({
348350
SyntaxFactory::makeBlankMetatypeType()
349351
.withBaseTypeSyntax(Int)
350352
.withDotToken(Dot)
351353
.withTypeToken(SyntaxFactory::makeIdentifier("WRONG", {}, {}));
352354
}, "");
355+
#endif
353356
}
354357

355358
TEST(TypeSyntaxTest, ArrayTypeWithAPIs) {

0 commit comments

Comments
 (0)