Hello community, here is the log from the commit of package ksystemlog for openSUSE:Factory checked in at 2016-07-24 19:48:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ksystemlog (Old) and /work/SRC/openSUSE:Factory/.ksystemlog.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ksystemlog" Changes: -------- --- /work/SRC/openSUSE:Factory/ksystemlog/ksystemlog.changes 2016-07-01 09:59:10.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ksystemlog.new/ksystemlog.changes 2016-07-24 19:48:30.000000000 +0200 @@ -1,0 +2,8 @@ +Fri Jul 8 00:18:02 UTC 2016 - tittiatcoke@gmail.com + +- Update to KDE Applications 16.04.3 + * KDE Applications 16.04.3 + * https://www.kde.org/announcements/announce-applications-16.04.3.php + + +------------------------------------------------------------------- Old: ---- ksystemlog-16.04.2.tar.xz New: ---- ksystemlog-16.04.3.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ksystemlog.spec ++++++ --- /var/tmp/diff_new_pack.SjHYHe/_old 2016-07-24 19:48:32.000000000 +0200 +++ /var/tmp/diff_new_pack.SjHYHe/_new 2016-07-24 19:48:32.000000000 +0200 @@ -26,7 +26,7 @@ BuildRequires: pkgconfig(Qt5Test) >= 5.2.0 BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0 Url: http://www.kde.org -Version: 16.04.2 +Version: 16.04.3 Release: 0 Summary: System Log Viewer Tool License: GPL-2.0 ++++++ ksystemlog-16.04.2.tar.xz -> ksystemlog-16.04.3.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ksystemlog-16.04.2/tests/kioLogFileReaderTest.cpp new/ksystemlog-16.04.3/tests/kioLogFileReaderTest.cpp --- old/ksystemlog-16.04.2/tests/kioLogFileReaderTest.cpp 2016-04-21 21:05:13.000000000 +0200 +++ new/ksystemlog-16.04.3/tests/kioLogFileReaderTest.cpp 2016-07-06 16:58:23.000000000 +0200 @@ -2,6 +2,8 @@ * KSystemLog, a system log viewer tool * * Copyright (C) 2007 by Nicolas Ternisien * * nicolas.ternisien@gmail.com * + * Copyright (C) 2016 by Harald Sitter * + * sitter@kde.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -43,8 +45,6 @@ void testKioLogFileReader(); - void readLine(const QString &line); - private: TestUtil testUtil; }; @@ -56,27 +56,24 @@ void KioLogFileReaderTest::testKioLogFileReader() { - /* - QList<LogFile> logFiles = testUtil.createLogFiles(":/logs/logFileReader/file.txt"); - LogFile logFile = logFiles.first(); - */ - - /// home/nicolas/test.txt - LogFile logFile(QUrl::fromLocalFile(QStringLiteral("http://localhost/test.txt")), + QString fixturePath = QFINDTESTDATA("testFiles/logFileReader/file.txt"); + LogFile logFile(QUrl::fromLocalFile(fixturePath), Globals::instance().informationLogLevel()); KioLogFileReader *logFileReader = new KioLogFileReader(logFile); - logFileReader->open(); - connect(logFileReader, &KioLogFileReader::lineRead, this, &KioLogFileReaderTest::readLine); - - QTest::qWait(100000); -} - -void KioLogFileReaderTest::readLine(const QString &line) -{ - logDebug() << "Line " << line << endl; + connect(logFileReader, &KioLogFileReader::lineRead, this, [=](const QString &line) { + logDebug() << "Line " << line << endl; + static QFile file(fixturePath); + static bool open = false; + if (!open) { + QVERIFY(file.open(QIODevice::ReadOnly | QIODevice::Text)); + open = true; + } + static QTextStream stream(&file); + QCOMPARE(line, stream.readLine()); + }); } QTEST_MAIN(KioLogFileReaderTest)