-/* Copyright (c) 2007-2012. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2014. 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. */
MSG_process_get_name(priv->tx_proc),
host_name, pr_name, clock_end - priv->clock_sta);
+ xbt_free(priv);
MSG_task_destroy(task);
return 0;
XBT_INFO("## Test 6 (started): Check migration impact (not yet implemented neither on the CPU resource nor on the network one");
XBT_INFO("### Relocate VM0 between PM0 and PM1");
vm0 = MSG_vm_create_core(pm0, "VM0");
+ {
+ s_ws_params_t params;
+ memset(¶ms, 0, sizeof(params));
+ params.ramsize = 1L * 1024 * 1024 * 1024; // 1Gbytes
+ MSG_host_set_params(vm0, ¶ms);
+ }
MSG_vm_start(vm0);
launch_communication_worker(vm0, pm2);
MSG_process_sleep(0.01);
MSG_vm_destroy(vm0);
XBT_INFO("## Test 6 (ended)");
+ xbt_dynar_free(&hosts_dynar);
return 0;
}
MSG_init(&argc, argv);
/* load the platform file */
+ xbt_assert(argc == 2);
MSG_create_environment(argv[1]);
xbt_dynar_t hosts_dynar = MSG_hosts_as_dynar();
int res = MSG_main();
XBT_INFO("Bye (simulation time %g)", MSG_get_clock());
-
+ xbt_dynar_free(&hosts_dynar);
return !(res == MSG_OK);
}