From 09d76c2e26e6b708c9537266e46437d4f6e155fb Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 10 Aug 2021 11:14:18 +0200 Subject: [PATCH] made semaphore tests optional --- tests/src/fsfw_tests/internal/InternalUnitTester.cpp | 6 ++++-- tests/src/fsfw_tests/internal/InternalUnitTester.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/src/fsfw_tests/internal/InternalUnitTester.cpp b/tests/src/fsfw_tests/internal/InternalUnitTester.cpp index f9fc1932..709f9f38 100644 --- a/tests/src/fsfw_tests/internal/InternalUnitTester.cpp +++ b/tests/src/fsfw_tests/internal/InternalUnitTester.cpp @@ -23,8 +23,10 @@ ReturnValue_t InternalUnitTester::performTests( testserialize::test_serialization(); testmq::testMq(); - testsemaph::testBinSemaph(); - testsemaph::testCountingSemaph(); + if(testConfig.testSemaphores) { + testsemaph::testBinSemaph(); + testsemaph::testCountingSemaph(); + } testmutex::testMutex(); if(testConfig.testArrayPrinter) { arrayprinter::testArrayPrinter(); diff --git a/tests/src/fsfw_tests/internal/InternalUnitTester.h b/tests/src/fsfw_tests/internal/InternalUnitTester.h index 50c89d77..433a0f1f 100644 --- a/tests/src/fsfw_tests/internal/InternalUnitTester.h +++ b/tests/src/fsfw_tests/internal/InternalUnitTester.h @@ -18,6 +18,7 @@ class InternalUnitTester: public HasReturnvaluesIF { public: struct TestConfig { bool testArrayPrinter = false; + bool testSemaphores = true; }; InternalUnitTester();