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

NVCC breaks TEST_CASE_TEMPLATE's naming #800

Open
29th-Day opened this issue Sep 1, 2023 · 0 comments
Open

NVCC breaks TEST_CASE_TEMPLATE's naming #800

29th-Day opened this issue Sep 1, 2023 · 0 comments

Comments

@29th-Day
Copy link

29th-Day commented Sep 1, 2023

Description

When I create a test using

TEST_CASE_TEMPLATE("dummy", T, int, unsigned int, float)
{
    std::cout << typeid(T).name() << std::endl;
}

in a standart cpp file, two test cases are created with the names "dummy<int>" & "dummy<float>". However when I write it in a .cu file and compile it with Nvidia's NVCC compiler a single test with the name "dummy<T>(>" is created. I can still run the test and both int and float will get tested.

Steps to reproduce

  1. Create cpp file
  2. Define TEST_CASE_TEMPLATE with arbitrary many types
  3. Compile and any compiler - everything works file
  4. Compile with NVCC - one test with ending "(>" is created

Extra information

  • doctest version: 2.4.11
  • Operating System: Windows 11
  • Compiler+version: MSVC 19.35.32216.1 / NVCC V12.1.105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant