Skip to content

Commit

Permalink
odb: consider that setOrigin won't return before callback calls while…
Browse files Browse the repository at this point in the history
… the block has not valid bbox

Signed-off-by: Arthur Koucher <arthurckoucher@gmail.com>
  • Loading branch information
AcKoucher committed Apr 3, 2024
1 parent f260474 commit 376e840
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/odb/test/cpp/TestCallBacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ BOOST_AUTO_TEST_CASE(test_inst_and_iterm)
BOOST_TEST(cb->events[1] == "PostMove inst i1");
cb->clearEvents();
i1->setOrigin(100, 100);
BOOST_TEST(cb->events.size() == 0);
i1->findITerm("a")->connect(n1);
BOOST_TEST(cb->events.size() == 2);
BOOST_TEST(cb->events[0] == "PreConnect iterm to net n1");
BOOST_TEST(cb->events[1] == "PostConnect iterm to net n1");
BOOST_TEST(cb->events[0] == "PreMove inst i1");
BOOST_TEST(cb->events[1] == "PostMove inst i1");
i1->findITerm("a")->connect(n1);
BOOST_TEST(cb->events.size() == 4);
BOOST_TEST(cb->events[2] == "PreConnect iterm to net n1");
BOOST_TEST(cb->events[3] == "PostConnect iterm to net n1");
cb->clearEvents();
i1->findITerm("a")->connect(n1);
BOOST_TEST(cb->events.size() == 0);
Expand Down

0 comments on commit 376e840

Please sign in to comment.