Skip to content

Commit

Permalink
Mod to TestCommonReadAttr to ignore time cap if not required
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Mar 1, 2020
1 parent 31f4957 commit e5a6d6a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions testing/adios2/engine/staging-common/TestCommonReadAttrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e5a6d6a

Please sign in to comment.