summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-01-26 01:03:02 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-01-26 01:03:02 (GMT)
commitd6e5f454e96bec7d9f67368f49bf44b46ed36c36 (patch)
tree5a1bef3ef8ceb807fd9893d33b7b754ac0fe7dcf /tests
parent0230a4ee515485216ceb5fc70b1219fe27af329a (diff)
downloadlibkolab-d6e5f454e96bec7d9f67368f49bf44b46ed36c36.tar.gz
Having blocking stuff in automated tests isn't such a good idea, disable by default.
Diffstat (limited to 'tests')
-rw-r--r--tests/testutils.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/testutils.h b/tests/testutils.h
index d61ec22..e7a71e1 100644
--- a/tests/testutils.h
+++ b/tests/testutils.h
@@ -53,20 +53,20 @@ void showDiff(const QString &expected, const QString &converted)
kWarning() << "contents are the same";
return;
}
- QTemporaryFile expectedFile("expectedFile");
- QTemporaryFile convertedFile("convertedFile");
- if (expectedFile.open() && convertedFile.open()) {
- expectedFile.write(expected.toLatin1());
- convertedFile.write(converted.toLatin1());
- expectedFile.close();
- convertedFile.close();
- QProcess::execute("kompare", QStringList() << "-c" << expectedFile.fileName() << convertedFile.fileName());
- } else {
- kWarning() << "files are not open";
- }
+ // QTemporaryFile expectedFile("expectedFile");
+ // QTemporaryFile convertedFile("convertedFile");
+ // if (expectedFile.open() && convertedFile.open()) {
+ // expectedFile.write(expected.toLatin1());
+ // convertedFile.write(converted.toLatin1());
+ // expectedFile.close();
+ // convertedFile.close();
+ // QProcess::execute("kompare", QStringList() << "-c" << expectedFile.fileName() << convertedFile.fileName());
+ // } else {
+ // kWarning() << "files are not open";
+ // }
-// qDebug() << "EXPECTED: " << expected;
-// qDebug() << "CONVERTED: " << converted;
+ qDebug() << "EXPECTED: " << expected;
+ qDebug() << "CONVERTED: " << converted;
}
KMime::Message::Ptr readMimeFile( const QString &fileName, bool &ok)