mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-02 19:18:41 +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:
@@ -70,9 +70,9 @@ TEST_F(RiseFallTest, Singletons) {
|
||||
}
|
||||
|
||||
TEST_F(RiseFallTest, Names) {
|
||||
// to_string() returns short_name: "^" for rise, "v" for fall
|
||||
EXPECT_EQ(RiseFall::rise()->to_string(), "^");
|
||||
EXPECT_EQ(RiseFall::fall()->to_string(), "v");
|
||||
// to_string() returns name: "rise" for rise, "fall" for fall
|
||||
EXPECT_EQ(RiseFall::rise()->to_string(), "rise");
|
||||
EXPECT_EQ(RiseFall::fall()->to_string(), "fall");
|
||||
}
|
||||
|
||||
TEST_F(RiseFallTest, Indices) {
|
||||
|
||||
Reference in New Issue
Block a user