Skip to content

Commit

Permalink
odb: clean cb events before connect
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <arthurckoucher@gmail.com>
  • Loading branch information
AcKoucher committed Apr 3, 2024
1 parent 376e840 commit 9ee58b6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/odb/test/cpp/TestCallBacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ BOOST_AUTO_TEST_CASE(test_inst_and_iterm)
BOOST_TEST(cb->events.size() == 2);
BOOST_TEST(cb->events[0] == "PreMove inst i1");
BOOST_TEST(cb->events[1] == "PostMove inst i1");
cb->clearEvents();
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");
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");
cb->clearEvents();
i1->findITerm("a")->connect(n1);
BOOST_TEST(cb->events.size() == 0);
Expand Down

0 comments on commit 9ee58b6

Please sign in to comment.