- char suite_title[81];
- int suite_len = strlen(suite->title);
-
- xbt_assert(suite_len < 68, "suite title \"%s\" too long (%d should be less than 68", suite->title, suite_len);
-
- suite_title[0] = ' ';
- for (int i = 1; i < 79; i++)
- suite_title[i] = '=';
- suite_title[79] = '\n';
- suite_title[80] = '\0';
-
- snprintf(suite_title + 40 - (suite_len + 4) / 2, 81 - (40 - (suite_len + 4) / 2), "[ %s ]", suite->title);
- suite_title[40 + (suite_len + 5) / 2] = '=';
- if (not suite->enabled)
- snprintf(suite_title + 70, 11, " DISABLED ");
- fprintf(stderr, "\n%s\n", suite_title);
-
- if (suite->enabled) {
+ int suite_len = this->title_.length();
+ xbt_assert(suite_len < 68, "suite title \"%s\" too long (%d should be less than 68", this->title_.c_str(), suite_len);
+
+ std::string suite_title = " ";
+ suite_title.resize(40 - (suite_len + 4) / 2, '=');
+ suite_title += std::string("[ ") + this->title_ + " ]";
+ suite_title.resize(79, '=');
+ if (not this->enabled_)
+ suite_title.replace(70, std::string::npos, " DISABLED");
+ _xbt_test_out << "\n" << suite_title << "\n";
+
+ if (this->enabled_) {