update test infra 2

Signed-off-by: dsengupta0628 <[email protected]>
This commit is contained in:
dsengupta0628
2026-03-30 21:49:10 +00:00
parent b5f647cb7f
commit 6ca7cb55a4
2 changed files with 14 additions and 15 deletions
+4 -5
View File
@@ -1599,7 +1599,7 @@ TEST_F(SdfDesignTest, ReadSdfPeriod) {
// R11_8: Read SDF with NOCHANGE check
// Covers: SdfReader::timingCheckNochange, notSupported
// NOCHANGE is not supported and throws, so we catch the exception
// NOCHANGE is not supported and issues a warning (no longer throws)
TEST_F(SdfDesignTest, ReadSdfNochange) {
ASSERT_TRUE(design_loaded_);
sta_->ensureGraph();
@@ -1626,11 +1626,10 @@ TEST_F(SdfDesignTest, ReadSdfNochange) {
fprintf(fp, ")\n");
fclose(fp);
// NOCHANGE is not supported and throws an exception
EXPECT_THROW(
// NOCHANGE is not supported; upstream now warns instead of throwing
EXPECT_NO_THROW(
readSdf(sdf_path, "", corner, false, false,
const_cast<MinMaxAll*>(MinMaxAll::all()), sta_),
std::exception
const_cast<MinMaxAll*>(MinMaxAll::all()), sta_)
);
std::remove(sdf_path);