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 Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
stdinprocess Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
.gitattributes Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
.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 Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
dosfile.txt Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
forCopying.txt Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
forRenaming.txt Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
noendofline.txt Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
qfile.pro Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
qfile.qrc Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
rename-fallback.qrc Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
test.pro Add qt_test_helper feature 2018-07-25 05:17:47 +00:00
testfile.txt Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
testlog.txt Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
tst_qfile.cpp Reduce redundancy and duplication in tst_QFile::appendAndRead 2018-07-30 15:04:40 +00:00
two.dots.file Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00