diff --git a/tests/components/proc/engine/testframe-test.cpp b/tests/components/proc/engine/testframe-test.cpp index 29e96b9c5..a7e086fa9 100644 --- a/tests/components/proc/engine/testframe-test.cpp +++ b/tests/components/proc/engine/testframe-test.cpp @@ -23,6 +23,7 @@ #include "lib/test/run.hpp" #include "proc/engine/testframe.hpp" +#include "lib/util.hpp" #include #include @@ -30,12 +31,13 @@ using test::Test; using std::rand; +using util::isSameObject; using boost::scoped_ptr; namespace engine{ namespace test { - + namespace { // used internally const uint CHAN_COUNT = 30; // independent families of test frames to generate @@ -76,6 +78,7 @@ namespace test { verifyBasicProperties(); verifyFrameLifecycle(); verifyFrameSeries(); + useFrameTable(); } @@ -155,14 +158,45 @@ namespace test { CHECK (prevFrames[i]->isSane()); CHECK (prevFrames[i]->isAlive()); - CHECK (*thisFrames[i] != *prevFrames[i]); // differs from predecessor in the same channel + CHECK (*thisFrames[i] != *prevFrames[i]); // differs from predecessor within the same channel for (uint j=0; j the default (%d)", chanNr, seqNr, FRA); for (uint i=channel.size(); i<=seqNr; ++i) - channel.push_back (TestFrame (seqNr,chanNr)); + channel.push_back (TestFrame (i,chanNr)); } ENSURE (seqNr < channel.size());