Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Tellico
Commits
bf6afd87
Commit
bf6afd87
authored
Apr 19, 2022
by
Robby Stephenson
Browse files
more imagejobtest debug++
parent
cf40ab22
Pipeline
#165697
failed with stage
in 2 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/images/imagejob.cpp
View file @
bf6afd87
...
...
@@ -74,7 +74,6 @@ void ImageJob::slotStart() {
myDebug
()
<<
"...permissions:"
<<
QFileInfo
(
fileName
).
permissions
();
m_image
=
Data
::
Image
(
fileName
,
m_id
);
if
(
m_image
.
isNull
())
{
myDebug
()
<<
"...null image"
;
setError
(
KIO
::
ERR_UNKNOWN
);
m_image
=
Data
::
Image
::
null
;
}
...
...
src/tests/imagejobtest.cpp
View file @
bf6afd87
...
...
@@ -106,7 +106,10 @@ void ImageJobTest::testUnreadable() {
QTemporaryFile
tmpFile
;
QVERIFY
(
tmpFile
.
open
());
QVERIFY
(
!
tmpFile
.
fileName
().
isEmpty
());
tmpFile
.
close
();
QVERIFY
(
tmpFile
.
setPermissions
(
QFileDevice
::
Permissions
()));
qDebug
()
<<
tmpFile
.
permissions
();
QVERIFY
(
!
tmpFile
.
isReadable
());
QUrl
u
=
QUrl
::
fromLocalFile
(
tmpFile
.
fileName
());
Tellico
::
ImageJob
*
job
=
new
Tellico
::
ImageJob
(
u
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment