Jump to content
OpenSplice DDS Forum
Sign in to follow this  
bdavis

difference between 6.4 and 6.7

Recommended Posts

hello all, just a note to share my experience upgrading from 6.4 to 6.7.

I had a bunch of unit test that use the 'no-network.ospl' file. 

They are run via a test framework (boost  / ctest) and each executable would make a partiticipant, publishers, subscribers, etc. for each test.

Tests using sequences started failing.  But only the 2nd and following tests, the first test in the executable always passed. 

The assert that was firing was in the idlpp created code.   A quick look at it showed the caching of a value that cannot be initialized correctly the second time everything was destroyed and re-created.

Below is the cmake line that I used to 'fix' this, where 'fix' means give me back the behavior I had before.

                  # This removes an optimization from the idlpp generated code that I think is wrong
                   # and causes us ctest failures.  this code is made in ospl version 6.7, and not in
                   # previous versions.  What the future holds is unknown
                        COMMAND sed
                        ARGS -i
                        "s/static c_type type0/c_type type0/" ${CMAKE_CURRENT_BINARY_DIR}/include/${BASENAME}SplDcps.c\

Using static variables is always tricky, I think it is wrong but what do I know :)

Just thought I would post this so others who experience the same kind of issue could perhaps save a bit of time.

 

regards,

Bud Davis

 


 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...