[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:
parent
ab4813c592
commit
23921c7889
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue