made semaphore tests optional

This commit is contained in:
Robin Müller 2021-08-10 11:14:18 +02:00
parent d06c92c478
commit 09d76c2e26
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 5 additions and 2 deletions

View File

@ -23,8 +23,10 @@ ReturnValue_t InternalUnitTester::performTests(
testserialize::test_serialization();
testmq::testMq();
if(testConfig.testSemaphores) {
testsemaph::testBinSemaph();
testsemaph::testCountingSemaph();
}
testmutex::testMutex();
if(testConfig.testArrayPrinter) {
arrayprinter::testArrayPrinter();

View File

@ -18,6 +18,7 @@ class InternalUnitTester: public HasReturnvaluesIF {
public:
struct TestConfig {
bool testArrayPrinter = false;
bool testSemaphores = true;
};
InternalUnitTester();