Skip to content
Snippets Groups Projects
Commit 765dcc1e authored by Andreas Schenk's avatar Andreas Schenk
Browse files

changed unit tests for image handle to reflect changes in observer, which now...

changed unit tests for image handle to reflect changes in observer, which now retains an internal reference to the observed image
parent b1207558
No related branches found
No related tags found
No related merge requests found
...@@ -209,9 +209,10 @@ void test_Observer() ...@@ -209,9 +209,10 @@ void test_Observer()
} }
// ih and ih2 go out-of-scope // ih and ih2 go out-of-scope
BOOST_CHECK(to1->release_count==1); // observer retains internal reference, therefore no call to release should happen
BOOST_CHECK(to1->release_count==0);
BOOST_CHECK_THROW(to1->CheckData(), InvalidObserver); BOOST_CHECK_NO_THROW(to1->CheckData());
delete to1; delete to1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment