-/* Copyright (c) 2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2019-2021. 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. */
try {
exec->wait_for(3);
XBT_INFO("Execution complete");
- } catch (simgrid::TimeoutException&) {
+ } catch (const simgrid::TimeoutException&) {
XBT_INFO("Execution Timeout!");
}
try {
exec->wait_for(6);
XBT_INFO("Execution complete");
- } catch (simgrid::TimeoutException&) {
+ } catch (const simgrid::TimeoutException&) {
XBT_INFO("Execution Timeout!");
}
try {
exec->wait_for(2);
XBT_INFO("Parallel Execution complete");
- } catch (simgrid::TimeoutException&) {
+ } catch (const simgrid::TimeoutException&) {
XBT_INFO("Parallel Execution Timeout!");
}
}