Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development/cyclicbuffer #1739

Merged
merged 71 commits into from
Sep 9, 2024
Merged
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
1bcfc79
[Core/cyclicbuffer] : Initialize mutex and condition variable only at…
msieben Feb 13, 2024
04527f1
[Core/cyclicbuffer] : Let (all) users 'wait' until the mutex and cond…
msieben Feb 13, 2024
30d7672
[Core/cyclicbuffer] : replace getpid() with gettid().
msieben Feb 14, 2024
a91e6a7
[Core/cyclicbuffer] : POSIX requires a locked mutex before 'pthread_c…
msieben Feb 14, 2024
21fcdc7
[Core/cyclicbuffer] : make successive time samples monotonic increasing.
msieben Feb 15, 2024
907031e
[Core/cyclicbuffer] : Avoid Thread workers to trigger false positives.
msieben Feb 19, 2024
d174173
[Core/cyclicbuffer] : Refactor locks and conditions (in an attempt) …
msieben Feb 19, 2024
29a35de
[Core/cyclicbuffer] : Align Windows an Linux identifiers.
msieben Feb 19, 2024
206ab99
[Tests] : Add initial cyclic-buffer test.
msieben Feb 20, 2024
a021f70
[Tests/cyclic-buffer] : Add actual write and read operations on varia…
msieben Feb 20, 2024
d4e52a4
[Tests/cyclic-buffer] : Add some randomness to read and write sample …
msieben Feb 21, 2024
f41de12
[Core/cyclicbuffer] : Avoid deadlock in Read with lenght equal 0.
msieben Feb 21, 2024
326a25c
[Tests/cyclic-buffer] : Add some Thread reschedule randomness.
msieben Feb 21, 2024
5501003
[Tests/cyclic-buffer] : Enable M:N writers and readers.
msieben Feb 22, 2024
81c46d2
[Tests/cyclic-buffer] : Some housekeeping.
msieben Feb 22, 2024
7151139
[Tests/cyclic-buffer] : Refactor 'Read(...)' and 'Write(...).
msieben Feb 22, 2024
723fc11
[Core/cyclicbuffer] : Amend 'f41de1249bc139271c199167307777486499c407'.
msieben Feb 22, 2024
2fa2701
[core/cyclicbufferi] : Checrry-picked '5b057fe59fd6656d93f29d5059acd9…
msieben Feb 22, 2024
180d6d2
[core/cyclicbuffer] : Correct ASSERT condition.
msieben Feb 22, 2024
acb04f4
[core/cyclicbuffer] : Cherry-picked 'a5c5ef9c665c8b4ffa1389bf04e9c289…
msieben Feb 22, 2024
ced9845
[core/cyclicbuffer] : relax the 'mode' condition.
msieben Feb 23, 2024
c911301
[Tests/cyclic-buffer] : Accommodate '2fa27014692851c5cf60f16daf449f3d…
msieben Feb 23, 2024
b749b88
[Tests/unit/IPTestAdministrator] : Disable abort.
msieben Feb 23, 2024
e1f518e
[Tests/cyclic-buffer] : Refactor into creator and users.
msieben Feb 23, 2024
b41d102
[Tests/cyclic-buffer] : Initial multi-process setup.
msieben Feb 24, 2024
c753220
[Tests/cyclic-buffer] : Some housekeeping.
msieben Feb 28, 2024
afc0f64
[Tests/cyclic-buffer] : Avoid fallthrough on error.
msieben Feb 28, 2024
9cda7a5
[Tests/cyclic-buffer] : Proper use of handshake timeouts.
msieben Feb 28, 2024
3b2953c
[Tests/cyclic-buffer] : Improve handshaking.
msieben Feb 28, 2024
e538ab8
[Tests/cyclic-buffer] : Some housekeeping and prepare for multiple ch…
msieben Feb 29, 2024
17aef16
[Tests/cyclic-buffer] : use 'lockTimeout in locks and allow 'Core::in…
msieben Feb 29, 2024
650411d
[Tests/cyclic-buffer] : Allow 'ungraceful' ending of writer(s) and re…
msieben Feb 29, 2024
cc9a2d3
Tests/cyclic-buffer : Continue with 'e538ab849b664a73add18fc6f9d5951f…
msieben Mar 1, 2024
74931f7
[core/cyclicbuffer] : Add robustness checks.
msieben Mar 5, 2024
cc16fec
[Tests/cyclic-buffer] : Refactor for use with unit testing.
msieben Mar 6, 2024
61a51e2
[Tests/cyclic-buffer] : Add configuration options.
msieben Mar 7, 2024
e7bd698
[Tests/cyclic-buffer] : Add 'storage' conditions.
msieben Mar 7, 2024
80fc5b4
[core/cyclicbuffer] : Remove superfluous ASSERT.
msieben Mar 8, 2024
ce5423a
[Tests/cyclic-buffer] : Add reservation by writers.
msieben Mar 8, 2024
d801c2c
[core/cyclicbuffer] : Do not ASSERT on write with reservation.
msieben Mar 8, 2024
392fb0d
[core/cyclicbuffer] : buffer reads should not let the tail exceed the…
msieben Apr 2, 2024
b34c69d
[Tests/cyclic-buffer] : amend 'cc16fecec2c616798cde80c69069a96648432d…
msieben Apr 2, 2024
dd57837
[Tests/unit/core] : Introduce Cyclicbuffer data exchange test.
msieben Apr 2, 2024
6ee3271
[core/cyclicbuffer] : Include the last element in writing.
msieben Apr 2, 2024
62c3ff5
[core/cyclicbuffer] : Remove ASSERT in 'IsValid()'.
msieben Apr 2, 2024
0926ec2
[Tests/unit/core] : Fix ASSERTS in 'test_cyclicbuffer.cpp'.
msieben Apr 2, 2024
c652c11
Merge branch 'master' into development/cyclicbuffer
msieben Apr 4, 2024
c628be1
[Tests/unit/core] : Introduce expected timeout result in 'test_cyclic…
msieben Apr 4, 2024
34298f3
[Tests/cyclic-buffer] : Improve use of block reservation.
msieben Apr 4, 2024
2485bc2
[Tests/cyclic-buffer] : Add unresponsiveness detection after 'c628be1…
msieben Apr 4, 2024
db117dc
[core/cyclicbuffer] : Assert on overflow in 'GetCompleteTail'.
msieben Apr 4, 2024
5db0dec
[Tests/cyclic-buffer] : Do not validate if 'overwrite' has been set.
msieben Apr 4, 2024
f4a28de
[Tests/cyclic-buffer] : Amend '2485bc2120017f587e29df393b6b1e4f206a87…
msieben Apr 5, 2024
3b94616
[Tests/cyclic-buffer] : Few improvements.
msieben Apr 5, 2024
5f185c4
[core/cyclicbuffer / Tests/unit/core/] : Add 'ReservedRemaining' for …
msieben Apr 5, 2024
40e79d4
[Tests/unit/core/] : Minor improvements CyclicBuffer tests.
msieben Apr 8, 2024
7d880d0
[Tests/unit/core/] : Amend '40e79d46267710d826c5622700dd4b7fdc8fb5a0'
msieben Apr 10, 2024
f861347
Merge branch 'master' into development/cyclicbuffer
msieben May 21, 2024
25b8d79
[Tests / Test/unit/core] : Fix build 'cyclic-buffer' and 'test_cyclic…
msieben May 21, 2024
04b64c3
Merge branch 'master' into development/cyclicbuffer
msieben Aug 14, 2024
2b117bf
WIP
msieben Aug 14, 2024
7b0880b
[Core/CyclicBuffer / Tests/unit/core] : fix build 'test_cyclicbuffer'…
msieben Aug 15, 2024
c20ba96
[Tests/cyclic-buffer] : remove erroneously added file
msieben Aug 15, 2024
1c313c4
Merge branch 'master' into development/cyclicbuffer
MFransen69 Aug 15, 2024
de2cc25
Added buildinfo method (build flags) for QA report (#1712)
nxtum Aug 15, 2024
a5a4886
[Tests/unit/core] : fix out of bounds and value tests for 'test_cycli…
msieben Aug 21, 2024
27efc93
Merge branch 'master' into development/cyclicbuffer
msieben Aug 26, 2024
ee1bd19
Merge branch 'master' into development/cyclicbuffer
msieben Sep 5, 2024
547317e
[Tests/unit/core] : Rework and simplify 'test_cyclicbuffer_dataexchange'
msieben Sep 6, 2024
6fb6e0b
[Tests/unit/core] : clean up a few leftovers in 'test_cyclicbuffer_da…
msieben Sep 9, 2024
6a80c7b
Merge branch 'master' into development/cyclicbuffer
msieben Sep 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Tests/unit/core/test_cyclicbuffer_dataexchange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
* limitations under the License.
*/

#include <future>

#include "../../cyclic-buffer/process.h"

#include <gtest/gtest.h>

#ifndef MODULE_NAME
Expand All @@ -43,7 +39,6 @@ namespace Tests {
const std::string bufferName {"/tmp/SharedCyclicBuffer"};

constexpr uint32_t memoryMappedFileRequestedSize = 30;//446;
constexpr uint32_t internalBufferSize = 40;//446;

// https://en.wikipedia.org/wiki/Lorem_ipsum
#define LOREM_IPSUM_TEXT "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
Expand Down