summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2015-08-31 17:35:59 +0200
committerRobin Burchell <robin.burchell@viroteck.net>2015-09-15 15:56:48 +0000
commitab751f6644a8f290352768d6f2a8c0e7e0d52c3d (patch)
tree9bd39779f4416eadf5610fd6d2e7d7bce71f9103 /tests
parent10bac0f7944274f2c1bee5092a70000cf771a0b3 (diff)
tst_qlogsystem: Don't try test syslogger on non-Unix platforms (e.g. Windows)
...it won't build. Longer term, we should look at getting rid of QMF's log system and using the categorized logging from QtCore, but this is not yet the time. Change-Id: I58d9bafd30b87068c36de074b787639adda921d1 Reviewed-by: Valerio Valerio <vdv100@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/tst_qlogsystem/tst_qlogsystem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tst_qlogsystem/tst_qlogsystem.cpp b/tests/tst_qlogsystem/tst_qlogsystem.cpp
index 92fbe0a2..56e2693d 100644
--- a/tests/tst_qlogsystem/tst_qlogsystem.cpp
+++ b/tests/tst_qlogsystem/tst_qlogsystem.cpp
@@ -282,6 +282,7 @@ void tst_QLogSystem::qWarningOutput()
void tst_QLogSystem::sysLoggerOutput()
{
+#if defined(Q_OS_UNIX)
QString expected = "[Debug] Test: '12' 'string' '12.25'\n";
SysLogger<LvlLogPrefix>* sysLogger = new SysLogger<LvlLogPrefix>("QMail logger test", LOG_PID, LOG_LOCAL7);
@@ -296,4 +297,5 @@ void tst_QLogSystem::sysLoggerOutput()
LogSystem::getInstance().clear();
QWARN (qPrintable(tr("Now You should see the string") + expected + tr("at syslog output LOG_LOCAL7, LOG_INFO")));
+#endif // defined(Q_OS_UNIX)
}