- if(slaves[i-4]==NULL) {
- INFO1("Unknown host %s. Stopping Now! ", argv[i]);
- abort();
- }
- }
+ /* Modify an existing property test. First check it exists */\
+ INFO0("Trying to modify a host property");
+ char *exist="Hdd";
+ value = MSG_host_get_property_value(slaves[i-4],exist);
+ if ( value == NULL)
+ INFO1("\tProperty: %s is undefined", exist);
+ else {
+ INFO2("\tProperty: %s old value: %s", exist, value);
+ xbt_dict_set(props, exist, strdup("250"), free);
+ }
+
+ /* Test if we have changed the value */
+ value = MSG_host_get_property_value(slaves[i-4],exist);
+ if ( value == NULL)
+ INFO1("\tProperty: %s is undefined", exist);
+ else
+ INFO2("\tProperty: %s new value: %s", exist, value);
+ }