projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Disable silent rules so that we can view more in Jenkins.
[m6w6/libmemcached]
/
libtest
/
formatter.cc
diff --git
a/libtest/formatter.cc
b/libtest/formatter.cc
index 8e6b3ffb282bc089576218bec7367c735fd718be..01c57609554ecc52d2f9ab036c7baf9cb6a770d0 100644
(file)
--- a/
libtest/formatter.cc
+++ b/
libtest/formatter.cc
@@
-34,12
+34,13
@@
*
*/
*
*/
-#include "
mem_config
.h"
+#include "
libtest/yatlcon
.h"
#include <libtest/common.h>
#include <libtest/common.h>
-#include <
iostrea
m>
+#include <
algorith
m>
#include <fstream>
#include <fstream>
+#include <iostream>
namespace libtest {
namespace libtest {
@@
-88,17
+89,17
@@
private:
libtest::Timer _timer;
};
libtest::Timer _timer;
};
-Formatter::Formatter(const std::string& arg) :
- _suite_name(arg)
+Formatter::Formatter(const std::string& frame_name, const std::string& arg)
{
{
+ _suite_name= frame_name;
+ _suite_name+= ".";
+ _suite_name+= arg;
}
Formatter::~Formatter()
{
}
Formatter::~Formatter()
{
- for (TestCases::iterator iter= _testcases.begin(); iter != _testcases.end(); ++iter)
- {
- delete *iter;
- }
+ std::for_each(_testcases.begin(), _testcases.end(), DeleteFromVector());
+ _testcases.clear();
}
TestCase* Formatter::current()
}
TestCase* Formatter::current()