-
Notifications
You must be signed in to change notification settings - Fork 13
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
C++ unit tests crash #16
Comments
@thomasp85 Do you have time to look into this within the next few days? (The package needs to be updated on CRAN by December 10 or will be archived.) It's unclear to me what is going on, and my only current fix is to disable all C++ unit tests, which seems suboptimal. |
Pinging @jimhester also. Any idea what's happening? This is related to r-lib/testthat#1230, r-lib/testthat#1008. I have made all the required changes for testthat 3.0, I believe: Uncommenting line 3 here causes the crash reproduced above: |
Do you know which of the C++ unit tests triggers the failure? Is it the last black that expects errors on invalid unisex transform input? If so it appears the errors are not properly caught, but I know next to nothing about testthats functionality for compiled code |
This just shows how important a second pair of eyes is. You found the issue. If I comment out the following lines everything else works: |
Ok, seems like Is it possible to write some C or C++ code that catches calls to |
I've simply disabled the tests for invalid input. So I'm going to close this issue. Updated version of isoband is on CRAN. |
Since the release of testthat 3.0.0, my C++ unit tests crash. Before the crash occurs, I see some errors being generated in these lines:
https://github.com/wilkelab/isoband/blob/50da871dda8ad38c46c63f0eed0e58bb4146d57a/src/clip-lines.h#L38-L46
but that must be a symptom of the problem, not the cause. The testing code is written so that it provides valid input, and it used to run in the past.
Detailed output of
devtools::test()
follows below.The text was updated successfully, but these errors were encountered: