microsoft / cppwinrt

C++/WinRT
MIT License
1.64k stars 236 forks source link

Bug: cpp20 source location test case failure #1325

Closed dmachaj closed 1 year ago

dmachaj commented 1 year ago

Version

No response

Summary

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_cpp[20](https://github.com/microsoft/cppwinrt/actions/runs/5338545026/jobs/9676159938#step:15:21).exe is a Catch v2.13.9 host application.
Run with -? for options

-------------------------------------------------------------------------------
custom_error_logger
-------------------------------------------------------------------------------
D:\a\cppwinrt\cppwinrt\test\test_cpp20\custom_error.cpp(48)
...............................................................................

D:\a\cppwinrt\cppwinrt\test\test_cpp20\custom_error.cpp(70): FAILED:
  REQUIRE( functionNameSv == "FailOnLine15" )
with expansion:
  "void __cdecl `anonymous-namespace'::FailOnLine15(void)"
  ==
  "FailOnLine15"

===============================================================================
test cases:  6 |  5 passed | 1 failed
assertions: 26 | [25](https://github.com/microsoft/cppwinrt/actions/runs/5338545026/jobs/9676159938#step:15:26) passed | 1 failed

Error: Process completed with exit code 1.

Reproducible example

No response

Expected behavior

No response

Actual behavior

No response

Additional comments

No response

riverar commented 1 year ago

@dmachaj Think you missed a ``` after your log block.

dmachaj commented 1 year ago

I didn't have any ` at all, so I'm not quite sure where the formatting came from. Adding ``` before and after seems to have done the trick, though.