[Test] Run 'appdelete' at end of GTest tests

This makes it easier to find memory leaks when using Valgrind by suppressing
false positives associated with data cached by Cantera.
This commit is contained in:
Ray Speth 2014-10-01 17:52:28 +00:00
parent ab4813c592
commit 23921c7889
2 changed files with 6 additions and 2 deletions

View file

@ -230,5 +230,7 @@ int main(int argc, char** argv)
{
printf("Running main() from pdep.cpp\n");
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
int result = RUN_ALL_TESTS();
Cantera::appdelete();
return result;
}

View file

@ -148,5 +148,7 @@ int main(int argc, char** argv)
{
printf("Running main() from nasapoly.cpp\n");
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
int result = RUN_ALL_TESTS();
Cantera::appdelete();
return result;
}