Unverified Commit e88bb9dd authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

call MPI_Finalize() so we don't have spurious memory leaks from MPI reported by valgrind

parent 39b61fbd
Loading
Loading
Loading
Loading
+4 −1
Changes for unittest/commands/test_simple_commands.cpp: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -128,5 +128,8 @@ int main(int argc, char **argv)
    MPI_Init(&argc, &argv);
    ::testing::InitGoogleMock(&argc, argv);
    if ((argc > 1) && (strcmp(argv[1], "-v") == 0)) verbose = true;
    return RUN_ALL_TESTS();

    int rv = RUN_ALL_TESTS();
    MPI_Finalize();
    return rv;
}
+4 −1
Changes for unittest/force-styles/test_main.cpp: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -110,5 +110,8 @@ int main(int argc, char **argv)
            return 1;
        }
    }
    return RUN_ALL_TESTS();

    int rv = RUN_ALL_TESTS();
    MPI_Finalize();
    return rv;
}
+4 −1
Changes for unittest/formats/test_atom_styles.cpp: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -350,5 +350,8 @@ int main(int argc, char **argv)
    MPI_Init(&argc, &argv);
    ::testing::InitGoogleMock(&argc, argv);
    if ((argc > 1) && (strcmp(argv[1], "-v") == 0)) verbose = true;
    return RUN_ALL_TESTS();

    int rv = RUN_ALL_TESTS();
    MPI_Finalize();
    return rv;
}
+4 −1
Changes for unittest/formats/test_eim_potential_file_reader.cpp: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -202,5 +202,8 @@ int main(int argc, char **argv)
    MPI_Init(&argc, &argv);
    ::testing::InitGoogleMock(&argc, argv);
    if ((argc > 1) && (strcmp(argv[1], "-v") == 0)) verbose = true;
    return RUN_ALL_TESTS();

    int rv = RUN_ALL_TESTS();
    MPI_Finalize();
    return rv;
}
+4 −1
Changes for unittest/formats/test_potential_file_reader.cpp: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -199,5 +199,8 @@ int main(int argc, char **argv)
    MPI_Init(&argc, &argv);
    ::testing::InitGoogleMock(&argc, argv);
    if ((argc > 1) && (strcmp(argv[1], "-v") == 0)) verbose = true;
    return RUN_ALL_TESTS();

    int rv = RUN_ALL_TESTS();
    MPI_Finalize();
    return rv;
}