Skip to content

Commit

Permalink
removed for loop one check was enough
Browse files Browse the repository at this point in the history
  • Loading branch information
venkat0907 authored and kumaakh committed Aug 10, 2023
1 parent c9a006a commit 3465749
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions base/test/frame_factory_test_dma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,7 @@ BOOST_AUTO_TEST_CASE(memcopy_read_write)
void *iptr = (static_cast<DMAFDWrapper *>(frame->data()))->getHostPtr();
memset(iptr,200,size);
unsigned char *bytePtr = static_cast<unsigned char *>(iptr);
for (size_t i = 0; i < size; ++i) {
BOOST_TEST(bytePtr[i] == 200);
}
BOOST_TEST(bytePtr[0] == 200);
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 3465749

Please sign in to comment.