diff options
author | Sven Gothel <[email protected]> | 2020-10-03 16:34:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-10-03 16:34:09 +0200 |
commit | 240eac6ecc85bfdec3e875c284131030fdbef282 (patch) | |
tree | 3c88914529e6b9f9d0581d3ecbede891418532a9 /test | |
parent | f079c7b2386d93f7c9b934874b6f6356de9baf5a (diff) |
test_lfringbuffer11: Add @suppress for C++ Code Analysis tool (Eclipse)
Diffstat (limited to 'test')
-rw-r--r-- | test/direct_bt/test_lfringbuffer11.cpp | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/test/direct_bt/test_lfringbuffer11.cpp b/test/direct_bt/test_lfringbuffer11.cpp index 3ec75b9..dcbba69 100644 --- a/test/direct_bt/test_lfringbuffer11.cpp +++ b/test/direct_bt/test_lfringbuffer11.cpp @@ -100,8 +100,8 @@ class Cppunit_tests : public Cppunit { CHECKM("Not empty size "+rb->toString(), 0, rb->getSize()); CHECKTM("Not empty "+rb->toString(), rb->isEmpty()); - std::thread getThread01(&Cppunit_tests::getThreadType01, this, "test01.get01", rb, capacity, 0); - std::thread putThread01(&Cppunit_tests::putThreadType01, this, "test01.put01", rb, capacity, 0); + std::thread getThread01(&Cppunit_tests::getThreadType01, this, "test01.get01", rb, capacity, 0); // @suppress("Invalid arguments") + std::thread putThread01(&Cppunit_tests::putThreadType01, this, "test01.put01", rb, capacity, 0); // @suppress("Invalid arguments") putThread01.join(); getThread01.join(); @@ -116,11 +116,11 @@ class Cppunit_tests : public Cppunit { CHECKM("Not empty size "+rb->toString(), 0, rb->getSize()); CHECKTM("Not empty "+rb->toString(), rb->isEmpty()); - std::thread getThread01(&Cppunit_tests::getThreadType01, this, "test02.get01", rb, capacity/4, -1); - std::thread getThread02(&Cppunit_tests::getThreadType01, this, "test02.get02", rb, capacity/4, -1); - std::thread putThread01(&Cppunit_tests::putThreadType01, this, "test02.put01", rb, capacity, 0); - std::thread getThread03(&Cppunit_tests::getThreadType01, this, "test02.get03", rb, capacity/4, -1); - std::thread getThread04(&Cppunit_tests::getThreadType01, this, "test02.get04", rb, capacity/4, -1); + std::thread getThread01(&Cppunit_tests::getThreadType01, this, "test02.get01", rb, capacity/4, -1); // @suppress("Invalid arguments") + std::thread getThread02(&Cppunit_tests::getThreadType01, this, "test02.get02", rb, capacity/4, -1); // @suppress("Invalid arguments") + std::thread putThread01(&Cppunit_tests::putThreadType01, this, "test02.put01", rb, capacity, 0); // @suppress("Invalid arguments") + std::thread getThread03(&Cppunit_tests::getThreadType01, this, "test02.get03", rb, capacity/4, -1); // @suppress("Invalid arguments") + std::thread getThread04(&Cppunit_tests::getThreadType01, this, "test02.get04", rb, capacity/4, -1); // @suppress("Invalid arguments") putThread01.join(); getThread01.join(); getThread02.join(); @@ -138,17 +138,17 @@ class Cppunit_tests : public Cppunit { CHECKM("Not empty size "+rb->toString(), 0, rb->getSize()); CHECKTM("Not empty "+rb->toString(), rb->isEmpty()); - std::thread getThread01(&Cppunit_tests::getThreadType01, this, "test03.get01", rb, capacity/8, -1); - std::thread getThread02(&Cppunit_tests::getThreadType01, this, "test03.get02", rb, capacity/8, -1); - std::thread putThread01(&Cppunit_tests::putThreadType01, this, "test03.put01", rb, capacity/2, 0); - std::thread getThread03(&Cppunit_tests::getThreadType01, this, "test03.get03", rb, capacity/8, -1); - std::thread getThread04(&Cppunit_tests::getThreadType01, this, "test03.get04", rb, capacity/8, -1); + std::thread getThread01(&Cppunit_tests::getThreadType01, this, "test03.get01", rb, capacity/8, -1); // @suppress("Invalid arguments") + std::thread getThread02(&Cppunit_tests::getThreadType01, this, "test03.get02", rb, capacity/8, -1); // @suppress("Invalid arguments") + std::thread putThread01(&Cppunit_tests::putThreadType01, this, "test03.put01", rb, capacity/2, 0); // @suppress("Invalid arguments") + std::thread getThread03(&Cppunit_tests::getThreadType01, this, "test03.get03", rb, capacity/8, -1); // @suppress("Invalid arguments") + std::thread getThread04(&Cppunit_tests::getThreadType01, this, "test03.get04", rb, capacity/8, -1); // @suppress("Invalid arguments") - std::thread getThread05(&Cppunit_tests::getThreadType01, this, "test03.get05", rb, capacity/8, -1); - std::thread getThread06(&Cppunit_tests::getThreadType01, this, "test03.get06", rb, capacity/8, -1); - std::thread putThread02(&Cppunit_tests::putThreadType01, this, "test03.put02", rb, capacity/2, 400); - std::thread getThread07(&Cppunit_tests::getThreadType01, this, "test03.get07", rb, capacity/8, -1); - std::thread getThread08(&Cppunit_tests::getThreadType01, this, "test03.get08", rb, capacity/8, -1); + std::thread getThread05(&Cppunit_tests::getThreadType01, this, "test03.get05", rb, capacity/8, -1); // @suppress("Invalid arguments") + std::thread getThread06(&Cppunit_tests::getThreadType01, this, "test03.get06", rb, capacity/8, -1); // @suppress("Invalid arguments") + std::thread putThread02(&Cppunit_tests::putThreadType01, this, "test03.put02", rb, capacity/2, 400); // @suppress("Invalid arguments") + std::thread getThread07(&Cppunit_tests::getThreadType01, this, "test03.get07", rb, capacity/8, -1); // @suppress("Invalid arguments") + std::thread getThread08(&Cppunit_tests::getThreadType01, this, "test03.get08", rb, capacity/8, -1); // @suppress("Invalid arguments") putThread01.join(); putThread02.join(); @@ -169,6 +169,14 @@ class Cppunit_tests : public Cppunit { test01_Read1Write1(); test02_Read4Write1(); test03_Read8Write2(); + + test01_Read1Write1(); + test02_Read4Write1(); + test03_Read8Write2(); + + test03_Read8Write2(); + test03_Read8Write2(); + test03_Read8Write2(); } }; |