Skip to content

Commit 6dc543d

Browse files
committed
enable assert only in debug
1 parent b1699ad commit 6dc543d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_components.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ TEST(PreprocessorsTest, multiPPContainerMixedThenCosinePreprocess) {
719719
// An assertion should be raised by the cosine preprocessor for unmatching blob sizes.
720720
// in valgrind the test continues, but the assertion appears in its log looking like an
721721
// error, so to avoid confusion we skip this line in valgrind.
722-
#ifndef RUNNING_ON_VALGRIND
722+
#if !defined(RUNNING_ON_VALGRIND) && !defined(NDEBUG)
723723
EXPECT_EXIT(
724724
{
725725
ProcessedBlobs processed_blobs = multiPPContainer.preprocess(

0 commit comments

Comments
 (0)