- for (const auto& kv : *props)
- XBT_INFO(" Host property: '%s' -> '%s'", kv.first.c_str(), kv.second.c_str());
+ // Sort the properties before displaying them, so that the tests are perfectly reproducible
+ std::vector<std::string> keys;
+ for (auto const& kv : *props)
+ keys.push_back(kv.first);
+ std::sort(keys.begin(), keys.end());
+ for (std::string key : keys)
+ XBT_INFO(" Host property: '%s' -> '%s'", key.c_str(), props->at(key).c_str());