Runner::print

This commit is contained in:
hysios hu 2012-09-23 17:27:03 +08:00
parent d65348a051
commit f96b931285

View File

@ -140,6 +140,7 @@ 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();
@ -152,7 +153,7 @@ void Runner::print(const QString &fh, const QString &content) {
if (fh.contains("report")) {
int index = (int)fh.split(":").last().toUInt();
std::cout << qPrintable("report");
QTextStream ts(outputFiles.at(index));
while (!outputFiles.isEmpty()){
QFile *outputFile = outputFiles.dequeue();