Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Update gtest from 1.9 to 1.10 #89

Open
calgray opened this issue Dec 2, 2020 · 0 comments
Open

Update gtest from 1.9 to 1.10 #89

calgray opened this issue Dec 2, 2020 · 0 comments

Comments

@calgray
Copy link
Collaborator

calgray commented Dec 2, 2020

Optional cuda support in unit tests can be improved using the new feature GTEST_SKIP in 1.10

#else
    GTEST_SKIP_("Library built without CUDA support, skipping CUDA test");
#endif

The the rest of the ifdefs in the test file will then be unnecessary and don't need to manually skip/disable tests.
Of course if you change to a runtime check then this would be slightly different, but the same idea.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant