From e5a6d6a9c1436b29723cb969433cd666f5e05ea0 Mon Sep 17 00:00:00 2001 From: Greg Eisenhauer Date: Sat, 29 Feb 2020 06:50:35 -0500 Subject: [PATCH] Mod to TestCommonReadAttr to ignore time cap if not required --- .../staging-common/TestCommonReadAttrs.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/testing/adios2/engine/staging-common/TestCommonReadAttrs.cpp b/testing/adios2/engine/staging-common/TestCommonReadAttrs.cpp index c3b392ddd6..e372d52a23 100644 --- a/testing/adios2/engine/staging-common/TestCommonReadAttrs.cpp +++ b/testing/adios2/engine/staging-common/TestCommonReadAttrs.cpp @@ -293,16 +293,18 @@ TEST_F(CommonReadTest, ADIOS2CommonRead1D8) TimeGapDetected++; } - if (TimeGapExpected) + if (!IgnoreTimeGap) { - EXPECT_TRUE(TimeGapDetected); + if (TimeGapExpected) + { + EXPECT_TRUE(TimeGapDetected); + } + else + { + EXPECT_FALSE(TimeGapDetected); + } } - else - { - EXPECT_EQ(t, NSteps); - EXPECT_FALSE(TimeGapDetected); - } // Close the file engine.Close(); }