]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/s4u/comm-pt2pt/comm-pt2pt.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert activity-lifecycle to catch2.
[simgrid.git] / teshsuite / s4u / comm-pt2pt / comm-pt2pt.cpp
index 07838b53aa7ba4af3e011c0153ec7c1bfb398876..763af3c5ddc8e8206d35d525febca337a6441ef6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2010-2020. 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. */
@@ -143,7 +143,7 @@ static void receiver(std::vector<std::string> args)
       default:
         xbt_die("Unknown receiver spec for test %u: '%c'", test, args[0][test - 1]);
     }
-    std::string* receivedStr = static_cast<std::string*>(received);
+    const std::string* receivedStr = static_cast<std::string*>(received);
     xbt_assert(*receivedStr == mboxName);
     delete receivedStr;
     XBT_INFO("Test %u OK", test);