some more tests fail
This commit is contained in:
parent
879223f38f
commit
23f8e5cb41
@ -236,9 +236,8 @@ TEST_CASE("Ring Buffer Test3", "[RingBufferTest3]") {
|
|||||||
|
|
||||||
SECTION("Overflow") {
|
SECTION("Overflow") {
|
||||||
REQUIRE(ringBuffer.availableWriteSpace() == 9);
|
REQUIRE(ringBuffer.availableWriteSpace() == 9);
|
||||||
// Writing more than the buffer is large, technically thats allowed
|
// Writing more than the buffer is large. Will be rejected
|
||||||
// But it is senseless and has undesired impact on read call
|
REQUIRE(ringBuffer.writeData(testData, 13) == retval::CATCH_FAILED);
|
||||||
REQUIRE(ringBuffer.writeData(testData, 13) == retval::CATCH_OK);
|
|
||||||
REQUIRE(ringBuffer.getAvailableReadData() == 3);
|
REQUIRE(ringBuffer.getAvailableReadData() == 3);
|
||||||
ringBuffer.clear();
|
ringBuffer.clear();
|
||||||
uint8_t *ptr = nullptr;
|
uint8_t *ptr = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user