Skip to content
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

catch_test_case_info.cpp: Assertion inTag failed #2650

Closed
xvitaly opened this issue Mar 1, 2023 · 1 comment
Closed

catch_test_case_info.cpp: Assertion inTag failed #2650

xvitaly opened this issue Mar 1, 2023 · 1 comment
Labels

Comments

@xvitaly
Copy link

xvitaly commented Mar 1, 2023

Describe the bug
Catch2 fails when running spdlog tests in Debug configuration (check this PR gabime/spdlog#2661). Release configuration works without issues.

Catch2 is included via FetchContent.

Expected behavior
Successful tests run.

Reproduction steps

git clone https://github.com/xvitaly/spdlog.git
git checkout catchv3
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build
ctest

Platform information:

  • OS: Linux (tested on Ubuntu and Fedora)
  • Compiler+version: GCC 11, 12; Clang 10, 12
  • Catch version: v3.3.2

Additional context

spdlog-utests: src/catch2/catch_test_case_info.cpp:147: Catch::TestCaseInfo::TestCaseInfo(Catch::StringRef, const Catch::NameAndTags&, const Catch::SourceLineInfo&): Assertion `inTag' failed.
@xvitaly xvitaly closed this as completed Mar 1, 2023
@phforesteot
Copy link

Hi,
as a note I've got the same assert which was caused because in my test:
TEST_CASE("lookup_apostrophes", "[ut][lookup]apo][itapo]")
I was missing a '[' in the tags. But that is not very clear from the assert.
my2cents

horenmar added a commit that referenced this issue May 20, 2023
Also removes a duplicated test case checking for empty tag error.

Related to #2650
horenmar added a commit that referenced this issue May 20, 2023
Also removes a duplicated test case checking for empty tag error.

Related to #2650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants