Merge pull request #325 from The-OpenROAD-Project-staging/sta_latest_merge_strings
Some checks failed
Automatically sync branch from upstream. / Automatic sync 'master' from The-OpenROAD-Project/OpenSTA (push) Has been cancelled
Lint Bazel / Run buildifier format (push) Has been cancelled
Lint Bazel / Run buildifier lint (push) Has been cancelled
CI / build (push) Has been cancelled
Scan Code with pre commit trigger / Security-Scan (push) Has been cancelled

update swig file to not use deprecated api and not test it either
This commit is contained in:
Matt Liberty
2026-03-31 19:02:49 +00:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -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(( [&](){

View File

@@ -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;