-
Notifications
You must be signed in to change notification settings - Fork 121
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
Lambda capture seems to prevent source file name being obtained #434
Comments
I have figured out a possible fix. This involves using the actual Does this approach sound reasonable? I can open a PR if needed. |
It looks like this issue is solved by 76e2f56. This issue can be closed. |
Hi, thanks for looking this - much appreciated! Can someone please say why the failing test in the godbolt link above is still failing - it downloads the latest version of the header from here, so if this bug were fixed, I would have thought that the 2nd test in that code would be passing now.... Here's the link again: |
@krzysztof-jusiak Hi Kris, in case you haven't seen it already, this issue isn't fixed - the godbolt link in the issue description and in the comment above still fails to compile... the error is still present... Please could you re-open this ticket, or perhaps provide a workaround? Many thanks. /CC @sam20908 |
oh, sorry, I didn't noice, thank you for pointing it out, repopened now |
Expected Behavior
That the filename obtained from a custom reporter should be valid, in this code - which can be run at https://godbolt.org/z/13Y7Wq1r7
Actual Behavior
Two different users of Approval Tests have reported that when a lambda capture is used, the source name is reported as 'unknown':
Steps to Reproduce the Problem
I've created a massively cut-down version of the Approval Tests code, for a minimal example. It took some hours - I hope it makes it easier to track down the problem:
If downloading this code to run locally, you will need to:
boost/ut.hpp
instead of#include <https://raw.githubusercontent.com/boost-ext/ut/master/include/boost/ut.hpp>
__stdin__
to be the base name (file without extension) of the source file you saved.Specifications
The text was updated successfully, but these errors were encountered: