summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/record02/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-08-16 18:40:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-08-17 19:01:10 +0200
commit52c8ac7b694cf7aca4a6f69d7e5c9323042b8057 (patch)
tree14ed34ccd0f7842e4478cb20d79f3cc90ef40c1c /testsuites/libtests/record02/init.c
parentrecord: Detect also large overflows (diff)
downloadrtems-52c8ac7b694cf7aca4a6f69d7e5c9323042b8057.tar.bz2
record: Improve overflow handling
In case of a ring buffer overflow, the rtems_record_drain() will push the complete ring buffer content to the client. While the items are processed by the client, new items may overwrite some items being processed. The overwritten items can be detected in the following iteration once the next tail/head information is pushed to the client.
Diffstat (limited to 'testsuites/libtests/record02/init.c')
-rw-r--r--testsuites/libtests/record02/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuites/libtests/record02/init.c b/testsuites/libtests/record02/init.c
index 5aeeb18cd9..f1c93f7df8 100644
--- a/testsuites/libtests/record02/init.c
+++ b/testsuites/libtests/record02/init.c
@@ -105,6 +105,7 @@ static void Init(rtems_task_argument arg)
cs = rtems_record_client_run(&ctx->client, &header, sizeof(header));
rtems_test_assert(cs == RTEMS_RECORD_CLIENT_SUCCESS);
rtems_record_drain(drain_visitor, ctx);
+ rtems_record_client_destroy(&ctx->client);
TEST_END();
rtems_test_exit(0);