add print fh

This commit is contained in:
hysios hu 2012-09-23 17:33:27 +08:00
parent f96b931285
commit 9a47cdd6c8

View File

@ -140,7 +140,6 @@ bool Runner::isQuiet() {
}
void Runner::print(const QString &fh, const QString &content) {
std::cout << qPrintable("Runner::report");
if (fh == "stdout") {
std::cout << qPrintable(content);
std::cout.flush();
@ -150,6 +149,7 @@ void Runner::print(const QString &fh, const QString &content) {
std::cerr << qPrintable(content);
std::cerr.flush();
}
std::cout << qPrintable("Runner::report" + fh);
if (fh.contains("report")) {
int index = (int)fh.split(":").last().toUInt();