Commit bf6afd87 authored by Robby Stephenson's avatar Robby Stephenson
Browse files

more imagejobtest debug++

parent cf40ab22
Pipeline #165697 failed with stage
in 2 minutes and 30 seconds
...@@ -74,7 +74,6 @@ void ImageJob::slotStart() { ...@@ -74,7 +74,6 @@ void ImageJob::slotStart() {
myDebug() << "...permissions:" << QFileInfo(fileName).permissions(); myDebug() << "...permissions:" << QFileInfo(fileName).permissions();
m_image = Data::Image(fileName, m_id); m_image = Data::Image(fileName, m_id);
if(m_image.isNull()) { if(m_image.isNull()) {
myDebug() << "...null image";
setError(KIO::ERR_UNKNOWN); setError(KIO::ERR_UNKNOWN);
m_image = Data::Image::null; m_image = Data::Image::null;
} }
......
...@@ -106,7 +106,10 @@ void ImageJobTest::testUnreadable() { ...@@ -106,7 +106,10 @@ void ImageJobTest::testUnreadable() {
QTemporaryFile tmpFile; QTemporaryFile tmpFile;
QVERIFY(tmpFile.open()); QVERIFY(tmpFile.open());
QVERIFY(!tmpFile.fileName().isEmpty()); QVERIFY(!tmpFile.fileName().isEmpty());
tmpFile.close();
QVERIFY(tmpFile.setPermissions(QFileDevice::Permissions())); QVERIFY(tmpFile.setPermissions(QFileDevice::Permissions()));
qDebug() << tmpFile.permissions();
QVERIFY(!tmpFile.isReadable());
QUrl u = QUrl::fromLocalFile(tmpFile.fileName()); QUrl u = QUrl::fromLocalFile(tmpFile.fileName());
Tellico::ImageJob* job = new Tellico::ImageJob(u); Tellico::ImageJob* job = new Tellico::ImageJob(u);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment