remove debug log

This commit is contained in:
hysios hu 2012-09-25 16:12:50 +08:00
parent 1079c71369
commit d3a87a7fc6

View File

@ -67,7 +67,6 @@ void Runner::loadSpec()
while (iterator.hasNext()) { while (iterator.hasNext()) {
QString fileName = iterator.next(); QString fileName = iterator.next();
std::cout << qPrintable(fileName);
QFile *outputFile = new QFile(fileName); QFile *outputFile = new QFile(fileName);
outputFile->open(QIODevice::WriteOnly); outputFile->open(QIODevice::WriteOnly);
outputFiles.enqueue(outputFile); outputFiles.enqueue(outputFile);
@ -149,16 +148,11 @@ void Runner::print(const QString &fh, const QString &content) {
std::cerr << qPrintable(content); std::cerr << qPrintable(content);
std::cerr.flush(); std::cerr.flush();
} }
std::cout << qPrintable("Runner::report " + fh);
if (fh.contains("report")) { if (fh.contains("report")) {
int index = (int)fh.split(":").last().toUInt(); int index = (int)fh.split(":").last().toUInt();
QTextStream ts(outputFiles.at(index)); QTextStream ts(outputFiles.at(index));
while (!outputFiles.isEmpty()){
QFile *outputFile = outputFiles.dequeue();
std::cout << qPrintable(outputFile->fileName()) << std::endl;
}
ts << qPrintable(content); ts << qPrintable(content);
ts.flush(); ts.flush();
} }