-int commTX(int argc, char *argv[])
-{
- msg_task_t task = NULL;
- char mailbox[80];
- sprintf(mailbox, "comm");
- XBT_INFO(" Start TX");
- task = MSG_task_create("COMM", 0, 100000000, NULL);
- MSG_task_isend(task, mailbox);
- // We should wait a bit (if not the process will end before the communication, leading to an exception at the other side).
- MSG_process_sleep(30);
- XBT_INFO(" TX done");
- return 0;
-}
-
-int commRX(int argc, char *argv[])
-{
- msg_task_t task = NULL;
- char mailbox[80];
- sprintf(mailbox, "comm");
- XBT_INFO(" Start RX");
- msg_error_t error = MSG_task_receive(&(task), mailbox);
- if (error==MSG_OK) {
- XBT_INFO(" Receive message: %s", task->name);
- } else if (error==MSG_HOST_FAILURE) {
- XBT_INFO(" Receive message: HOST_FAILURE");
- } else if (error==MSG_TRANSFER_FAILURE) {
- XBT_INFO(" Receive message: TRANSFERT_FAILURE");
- } else {
- XBT_INFO(" Receive message: %d", error);
+ XBT_INFO(" Turn Jupiter off");
+ MSG_host_off(jupiter);
+ XBT_INFO(" Shutdown vm0");
+ MSG_vm_shutdown(vm0);
+ XBT_INFO(" Destroy vm0");
+ MSG_vm_destroy(vm0);
+ XBT_INFO("Test 6 is also weird: when the node Jupiter is turned off once again, the VM and its daemon are not "
+ "killed. However, the issue regarding the shutdown of hosted VMs can be seen a feature not a bug ;)");