some more tests fail
fsfw/fsfw/pipeline/pr-development There was a failure building this commit Details

This commit is contained in:
Robin Müller 2022-03-24 21:01:21 +01:00
parent 879223f38f
commit 23f8e5cb41
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
1 changed files with 2 additions and 3 deletions

View File

@ -236,9 +236,8 @@ TEST_CASE("Ring Buffer Test3", "[RingBufferTest3]") {
SECTION("Overflow") {
REQUIRE(ringBuffer.availableWriteSpace() == 9);
// Writing more than the buffer is large, technically thats allowed
// But it is senseless and has undesired impact on read call
REQUIRE(ringBuffer.writeData(testData, 13) == retval::CATCH_OK);
// Writing more than the buffer is large. Will be rejected
REQUIRE(ringBuffer.writeData(testData, 13) == retval::CATCH_FAILED);
REQUIRE(ringBuffer.getAvailableReadData() == 3);
ringBuffer.clear();
uint8_t *ptr = nullptr;