A lambda-based C++ unit-testing framework.
Revisão | 1db9bba546b91234ffb516a734f0105a11071be3 (tree) |
---|---|
Hora | 2020-01-23 20:06:23 |
Autor | Kaz Nishimura <kazssym@linu...> |
Commiter | Kaz Nishimura |
Modify type aliasing
@@ -86,9 +86,9 @@ | ||
86 | 86 | |
87 | 87 | void TestDriver::run(const char *const suiteName) |
88 | 88 | { |
89 | - typedef TestRegistry *(*getRegistryFunction)(); | |
89 | + using GetRegistryFunction = TestRegistry *(); | |
90 | 90 | module suite(suiteName); |
91 | - auto getRegistry = reinterpret_cast<getRegistryFunction>( | |
91 | + auto getRegistry = reinterpret_cast<GetRegistryFunction *>( | |
92 | 92 | lt_dlsym(suite.handle, "cppunitx_registry")); |
93 | 93 | if (getRegistry == nullptr) { |
94 | 94 | throw runtime_error(string(suiteName) + ": Not test suite module"); |