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

Public GIT Repository
Sonar smells.
[simgrid.git] / teshsuite / s4u / listen_async / listen_async.cpp
index 8002e01f4760ff02057dddb3b72a1a10ff516c91..e277a3df8d111771f13ec80ddc09be2c4e0c4efe 100644 (file)
@@ -21,6 +21,9 @@ static void server()
 
   xbt_assert(mailbox->listen()); // True (1)
   XBT_INFO("Task listen works on regular mailboxes");
+  XBT_INFO("Mailbox::listen_from() returns %ld (should return my pid, which is %ld)", mailbox->listen_from(),
+           simgrid::s4u::this_actor::get_pid());
+
   const std::string* res = static_cast<std::string*>(mailbox->get());
 
   xbt_assert(*res == "Some data", "Data received: %s", res->c_str());