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(); testserialize::test_serialization();
testmq::testMq(); testmq::testMq();
testsemaph::testBinSemaph(); if(testConfig.testSemaphores) {
testsemaph::testCountingSemaph(); testsemaph::testBinSemaph();
testsemaph::testCountingSemaph();
}
testmutex::testMutex(); testmutex::testMutex();
if(testConfig.testArrayPrinter) { if(testConfig.testArrayPrinter) {
arrayprinter::testArrayPrinter(); arrayprinter::testArrayPrinter();

View File

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