diff --git a/sdc/test/cpp/TestSdcClasses.cc b/sdc/test/cpp/TestSdcClasses.cc index de5cc696..2ec6c0bb 100644 --- a/sdc/test/cpp/TestSdcClasses.cc +++ b/sdc/test/cpp/TestSdcClasses.cc @@ -4407,7 +4407,7 @@ TEST_F(SdcInitTest, SdcSwapDeratingFactors) { // Sdc: deleteDeratingFactors // Sdc: allInputs/allOutputs // Sdc: findClocksMatching -// Sdc: isGroupPathName +// Sdc: isGroupPathName (deprecated) and isPathGroupName TEST_F(SdcInitTest, SdcIsGroupPathNameEmpty) { Sdc *sdc = sta_->cmdSdc(); // Suppress deprecation warning -- we intentionally test deprecated API @@ -4418,6 +4418,10 @@ TEST_F(SdcInitTest, SdcIsGroupPathNameEmpty) { EXPECT_FALSE(is_group); } +TEST_F(SdcInitTest, SdcIsPathGroupNameEmpty) { + EXPECT_FALSE(sta_->isPathGroupName("nonexistent", sta_->cmdSdc())); +} + // Sdc: setVoltage TEST_F(SdcInitTest, SdcSetVoltageGlobal) { ASSERT_NO_THROW(( [&](){ diff --git a/search/Search.i b/search/Search.i index f1617670..4c4b0ff2 100644 --- a/search/Search.i +++ b/search/Search.i @@ -238,7 +238,7 @@ endpoint_slack(const Pin *pin, Sta *sta = Sta::sta(); sta->ensureLibLinked(); if (!path_group_name.empty() - && !sta->isGroupPathName(path_group_name, sta->cmdSdc())) { + && !sta->isPathGroupName(path_group_name, sta->cmdSdc())) { sta->report()->error(1577, "{} is not a known path group name.", path_group_name); return INF;