mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-02 10:48:35 +02:00
test: Fix test failures after master merge
Update test code to match API changes from upstream master:
- TestGraph.cc: Fix makeScenes() call to pass reference instead of pointer
- TestLibertyClasses.cc: Fix ScaleFactorType wire_res/wire_cap name mapping;
fix TablePtr usage by calling .get() where const TableModel* is expected
- TestLibertyClasses.cc: Update liberty_read_nangate.ok for new timing arc output
- TestPower.cc: Replace PwrActivityOrigin::defaulted with ::unknown;
fix isSet() expectations (unknown origin returns false)
- TestSdcClasses.cc, TestSdf.cc, TestUtil.cc, TestSpice.cc:
Fix RiseFall::to_string() expected values from short form ("^"/"v")
to long form ("rise"/"fall")
- TestUtil.cc: Remove tests for deleted StringVector/split/TokenParser
and StringSet::deleteContents (removed from master)
- TestSpice.cc: Replace StdStringSeq with StringSeq
- helpers.tcl: Use pwd-based result_dir so module tests write results
to their own test/results/ directory
- verilog_bus.ok: Update golden file for new port ordering from master
Signed-off-by: Jaehyun Kim <[email protected]>
This commit is contained in:
@@ -630,8 +630,8 @@ TEST_F(SdfSmokeTest, TransitionMaxIndex) {
|
||||
// Test RiseFall to_string
|
||||
// Covers: RiseFall::to_string
|
||||
TEST_F(SdfSmokeTest, RiseFallToString) {
|
||||
EXPECT_EQ(RiseFall::rise()->to_string(), "^");
|
||||
EXPECT_EQ(RiseFall::fall()->to_string(), "v");
|
||||
EXPECT_EQ(RiseFall::rise()->to_string(), "rise");
|
||||
EXPECT_EQ(RiseFall::fall()->to_string(), "fall");
|
||||
}
|
||||
|
||||
// Test MinMax compare with equal values
|
||||
@@ -1306,8 +1306,8 @@ TEST_F(SdfSmokeTest, MinMaxCompareExtremes) {
|
||||
}
|
||||
|
||||
TEST_F(SdfSmokeTest, RiseFallToStringAndFind) {
|
||||
EXPECT_EQ(RiseFall::rise()->to_string(), "^");
|
||||
EXPECT_EQ(RiseFall::fall()->to_string(), "v");
|
||||
EXPECT_EQ(RiseFall::rise()->to_string(), "rise");
|
||||
EXPECT_EQ(RiseFall::fall()->to_string(), "fall");
|
||||
EXPECT_EQ(RiseFall::find("^"), RiseFall::rise());
|
||||
EXPECT_EQ(RiseFall::find("v"), RiseFall::fall());
|
||||
EXPECT_EQ(RiseFall::find("rise"), RiseFall::rise());
|
||||
|
||||
Reference in New Issue
Block a user