-
Notifications
You must be signed in to change notification settings - Fork 58
Camera ShaderSelection: avoid seg-fault #720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The test currently seg-faults after an EXPECT_* statement is used to check for a nullptr and the pointer is later dereferenced. Wrap the subsequent check in an if statement to allow the rest of the test to continue instead of using ASSERT_*. Signed-off-by: Steve Peters <[email protected]>
Codecov Report
@@ Coverage Diff @@
## gz-rendering7 #720 +/- ##
==============================================
Coverage 74.14% 74.14%
==============================================
Files 164 164
Lines 14351 14351
==============================================
Hits 10641 10641
Misses 3710 3710 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
test failed again on glados: but at least it gives a clearer indication of the problem than before: |
should we re-disable the test on macOS CI? |
+1 to disabling the test for now. |
Signed-off-by: Steve Peters <[email protected]>
|
🦟 Bug fix
Improves error reporting for failing test
Summary
A test was re-enabled for macOS in #703, but it seems to still fail on certain machines (see comments below #703 (comment)).
The test currently seg-faults after an
EXPECT_*
statement is used to check for a nullptr and the pointer is later dereferenced. Wrap the subsequent check in an if statement to allow the rest of the test to continue instead of usingASSERT_*
. This doesn't fix the underlying issue but it should allow the test to proceed a bit farther and provide more useful failure reporting.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.