diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index 0bfebb35a2..8eaa66109e 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -395,6 +395,7 @@ int main() cmPassed("Module loaded and ModuleFunction called correctly."); } } + cmDynamicLoader::FlushCache(); // fix memory leaks if(sharedFunction() != 1) { cmFailed("Call to sharedFunction from shared library failed."); diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index 0bfebb35a2..8eaa66109e 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -395,6 +395,7 @@ int main() cmPassed("Module loaded and ModuleFunction called correctly."); } } + cmDynamicLoader::FlushCache(); // fix memory leaks if(sharedFunction() != 1) { cmFailed("Call to sharedFunction from shared library failed."); diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index 0bfebb35a2..8eaa66109e 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -395,6 +395,7 @@ int main() cmPassed("Module loaded and ModuleFunction called correctly."); } } + cmDynamicLoader::FlushCache(); // fix memory leaks if(sharedFunction() != 1) { cmFailed("Call to sharedFunction from shared library failed.");