-/* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-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. */
xbt_dict_free(&props);
}
-static int alice(int argc, char* argv[])
+static int alice(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
{ /* Dump what we have on the current host */
test_host("host1");
return 0;
}
-static int carole(int argc, char* argv[])
+static int carole(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
{ /* Dump what we have on a remote host */
MSG_process_sleep(1); // Wait for alice to be done with its experiment
test_host("host1");
return 0;
}
-static int david(int argc, char* argv[])
+static int david(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
{ /* Dump what we have on a remote host */
MSG_process_sleep(2); // Wait for alice and carole to be done with its experiment
- test_host("node-0.acme.org");
+ test_host("node-0.simgrid.org");
return 0;
}
-static int bob(int argc, char* argv[])
+static int bob(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
{
/* this host also tests the properties of the AS*/
- msg_as_t root = MSG_zone_get_root();
+ const_sg_netzone_t root = MSG_zone_get_root();
XBT_INFO("== Print the properties of the AS");
XBT_INFO(" Process property: filename -> %s", MSG_zone_get_property_value(root, "filename"));
XBT_INFO(" Process property: date -> %s", MSG_zone_get_property_value(root, "date"));
XBT_INFO("== Try to get a process property that does not exist");
value = MSG_process_get_property_value(MSG_process_self(), noexist);
- xbt_assert(!value, "The property is defined (it shouldnt)");
+ xbt_assert(!value, "The property is defined (it shouldn't)");
xbt_dict_free(&props);
return 0;