Let dds_create_participant determine domain id if config specifies "any" (new default)
Note: DDS_DOMAIN_DEFAULT with a configuration specifying "any" results in domain 0. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
675fbfe013
commit
bb92294f4e
10 changed files with 78 additions and 44 deletions
|
@ -45,13 +45,13 @@ Test(ddsc_participant, create_with_no_conf_no_env) {
|
|||
dds_entity_t participant, participant2, participant3;
|
||||
dds_return_t status;
|
||||
dds_domainid_t domain_id;
|
||||
dds_domainid_t valid_domain=0;
|
||||
dds_domainid_t valid_domain=3;
|
||||
|
||||
const char * env_uri = os_getenv(DDSC_PROJECT_NAME_NOSPACE_CAPS"_URI");
|
||||
cr_assert_eq(env_uri, NULL, DDSC_PROJECT_NAME_NOSPACE_CAPS"_URI must be NULL");
|
||||
|
||||
//invalid domain
|
||||
participant = dds_create_participant (1, NULL, NULL);
|
||||
participant = dds_create_participant (-2, NULL, NULL);
|
||||
cr_assert_lt(participant, 0, "Error must be received for invalid domain value");
|
||||
|
||||
//valid specific domain value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue