1
0
forked from fsfw/fsfw

weird bug

This commit is contained in:
2021-03-10 23:16:47 +01:00
parent 8d28bc4b6a
commit 620b2ae79e
6 changed files with 84 additions and 15 deletions

View File

@ -6,6 +6,7 @@
#include <fsfw/datapoollocal/HasLocalDataPoolIF.h>
#include <fsfw/datapoollocal/StaticLocalDataSet.h>
#include <fsfw/datapool/PoolReadGuard.h>
#include <fsfw/datapoollocal/SharedLocalDataSet.h>
#include <fsfw/globalfunctions/bitutility.h>
#include <unittest/core/CatchDefinitions.h>
@ -252,6 +253,11 @@ TEST_CASE("DataSetTest" , "[DataSetTest]") {
CHECK(localSet.localPoolUint16Vec.isValid() == true);
}
SECTION("SharedDataSet") {
object_id_t sharedSetId = objects::SHARED_SET_ID;
SharedLocalDataSet sharedSet(sharedSetId, poolOwner, 2, 5);
}
/* we need to reset the subscription list because the pool owner
is a global object. */
CHECK(poolOwner->reset() == retval::CATCH_OK);