qt5base-lts/tests/auto/corelib/io/qfile
Edward Welbourne a76a0afc1a Reduce redundancy and duplication in tst_QFile::appendAndRead
Use one QStringLiteral instead of repeating a QLatin1String(), that
was passed to a function that has to convert it to unicode; do the
conversion at compile-time.

Reducing i % 256 is fatuous when i ranges from 1 to 100.

A QFile will close() itself on destruction, no need to do it explicitly.
Especially when *not* close()ing the *other* QFile that was left open.

Change-Id: Idb39312d9c9beaf082b7cead574bc6bb9bb3a775
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2018-07-30 15:04:40 +00:00
..
resources
stdinprocess Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
.gitattributes
.gitignore tst_qfile: Fix execution for WinRT 2018-06-28 15:43:58 +00:00
BLACKLIST Autotest: fix blacklisted test about position on non-regular files 2017-08-08 21:48:28 +00:00
copy-fallback.qrc
dosfile.txt
forCopying.txt
forRenaming.txt
noendofline.txt
qfile.pro Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
qfile.qrc
rename-fallback.qrc
test.pro Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
testfile.txt
testlog.txt
tst_qfile.cpp Reduce redundancy and duplication in tst_QFile::appendAndRead 2018-07-30 15:04:40 +00:00
two.dots.file