]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/resource/profile/Profile_test.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix double-free.
[simgrid.git] / src / kernel / resource / profile / Profile_test.cpp
index 6996ec728af3f3b51acbf24a24f404d480597133..abcee5aa2e77f14990ad8f53c6500f356ee1bb27 100644 (file)
@@ -153,7 +153,6 @@ TEST_CASE("kernel::profile: Resource profiles, defining the external load", "ker
                                                                                    "DET 0 UNIF 10 20");
 
     std::vector<simgrid::kernel::profile::StochasticDatedValue> want;
- //want.emplace_back(0, -1); // The initial fake event
     want.emplace_back(Distribution::DET, std::vector<double>{0}, Distribution::UNIF, std::vector<double>{10, 20});
 
     REQUIRE(want == got);
@@ -169,7 +168,6 @@ TEST_CASE("kernel::profile: Resource profiles, defining the external load", "ker
                                                                                    "DET 5 UNIF 5 25");
 
     std::vector<simgrid::kernel::profile::StochasticDatedValue> want;
-   // want.emplace_back(0, -1);
     want.emplace_back(Distribution::DET, std::vector<double>{0}, Distribution::DET, std::vector<double>{4});
     want.emplace_back(Distribution::NORM, std::vector<double>{25, 10}, Distribution::DET, std::vector<double>{3});
     want.emplace_back(Distribution::UNIF, std::vector<double>{10, 20}, Distribution::NORM, std::vector<double>{25, 10});