Accept null dlhandle and support custom dlopen flags#35
Accept null dlhandle and support custom dlopen flags#35chapulina wants to merge 12 commits intoign-plugin1from
Conversation
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## ign-plugin1 #35 +/- ##
===============================================
- Coverage 99.82% 98.64% -1.19%
===============================================
Files 15 15
Lines 584 592 +8
===============================================
+ Hits 583 584 +1
- Misses 1 8 +7
Continue to review full report at Codecov.
|
|
I made a cimment about this here gazebosim/gz-sensors#90 (comment) |
Signed-off-by: Louise Poubel <louise@openrobotics.org>
@ahcorde , I think the current version of this PR addresses those test failures. This PR adds support for
Let me know what you think. |
Signed-off-by: Louise Poubel <louise@openrobotics.org>
|
I started writing some tests using I'm afraid that we get this in, start using |
|
Removing beta label, we won't have time to wrap this up before code freeze. Let's retarget at Ignition-F. |
|
Let's table this idea for now, tweaking the flags is probably not the best way to go about this. |
After digging through #30,
I was able to getUpdate: this PR also allows changing setting to global.ign-sensorsto work with only this change, without touching the local / global variables. It seems to me that this change is backwards compatible, because it only tries the nullptr after trying the usual method first.We know no previous use cases were getting a null handle because we haven't run into that assert. So I think this is safe to go into
ign-plugin1.Unfortunately, I have no idea what leads us into this situation, so I'm not able to write a test case for it 😕
Let me know what you think, @ahcorde .
Here's the
ign-sensorsPR that uses this: gazebosim/gz-sensors#90