X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/88fad0aaff9eb463f048bfdfe4ad6218aba44ddb..b37037e5e2125306aa1c5472c9171cda0791cca0:/src/surf/trace_mgr_test.cpp diff --git a/src/surf/trace_mgr_test.cpp b/src/surf/trace_mgr_test.cpp index fc8601aa5b..719dc9dcd6 100644 --- a/src/surf/trace_mgr_test.cpp +++ b/src/surf/trace_mgr_test.cpp @@ -1,10 +1,10 @@ -/* Copyright (c) 2017-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2017-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #define BOOST_TEST_MODULE Trace Manager tests -bool init_unit_test(); // boost forget to give this prototype on NetBSD, which does not fit our paranoid flags +bool init_unit_test(); // boost sometimes forget to give this prototype (NetBSD and other), which does not fit our paranoid flags #define BOOST_TEST_DYN_LINK #define BOOST_TEST_NO_MAIN #include @@ -27,12 +27,12 @@ double thedate; class MockedResource : public simgrid::kernel::resource::Resource { public: explicit MockedResource() : simgrid::kernel::resource::Resource(nullptr, "fake", nullptr) {} - void apply_event(tmgr_trace_event_t event, double value) + void apply_event(tmgr_trace_event_t event, double value) override { XBT_VERB("t=%.1f: Change value to %lg (idx: %u)", thedate, value, event->idx); tmgr_trace_event_unref(&event); } - bool isUsed() { return true; } + bool is_used() override { return true; } }; static void trace2vector(const char* str, std::vector* whereto)