<table><tr><td style="">chinmoyr updated this revision to Diff 51875.<br />chinmoyr marked 4 inline comments as done.<br />chinmoyr added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19080">View Revision</a></tr></table><br /><div><div><p>Removed warning message.<br />
Removed arg().<br />
Added test cases.<br />
Used QFile::resize().</p>
<p>Replying to a comment:</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>This test is called Overwrite, and passes the Overwrite flag, but it's not actually <br />
overwriting anything (destFile doesn't exist).</p></blockquote>
<p>createTestDirectory() internally calls createTestFile() so both source and dest <br />
files are created. There, using QFile, I wanted to resize the source file to make <br />
sure the .part file isn't deleted before the lambda is called.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D19080?vs=51859&id=51875">https://phabricator.kde.org/D19080?vs=51859&id=51875</a></div></div><br /><div><strong>BRANCH</strong><div><div>safe-overwrite</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19080">https://phabricator.kde.org/D19080</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/jobtest.cpp<br />
autotests/jobtest.h<br />
src/ioslaves/file/file_unix.cpp</div></div></div><br /><div><strong>To: </strong>chinmoyr, dfaure, ngraham<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>