summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/corelib/io
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-07-05 18:18:52 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-07-16 17:01:24 +0200
commitaff8d83512e719b7599c0e759b81fb9b63eadb04 (patch)
treef27a37e96b1ad83e3eeb6c1a0ff55758879bfe25 /tests/benchmarks/corelib/io
parentcc7e0b5c2c351441f0a3f04e8471d0eac2c97601 (diff)
Skip trailing space on ends of QFile benchmark names
They were there to make it easier to build the names. Avoiding them wasn't exactly hard. Change-Id: I9e353644d81f80d69ecf73fe4fa875948ccbc2c9 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Diffstat (limited to 'tests/benchmarks/corelib/io')
-rw-r--r--tests/benchmarks/corelib/io/qfile/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/benchmarks/corelib/io/qfile/main.cpp b/tests/benchmarks/corelib/io/qfile/main.cpp
index 357205cbe8..5915383888 100644
--- a/tests/benchmarks/corelib/io/qfile/main.cpp
+++ b/tests/benchmarks/corelib/io/qfile/main.cpp
@@ -170,9 +170,12 @@ void tst_qfile::readFile_data(BenchmarkType type, QIODevice::OpenModeFlag t,
QByteArray flagstring;
if (t & QIODevice::Text)
- flagstring += "textMode ";
- if (b & QIODevice::Unbuffered)
- flagstring += "unbuffered ";
+ flagstring += "textMode";
+ if (b & QIODevice::Unbuffered) {
+ if (flagstring.size())
+ flagstring += ' ';
+ flagstring += "unbuffered";
+ }
if (flagstring.isEmpty())
flagstring = "none";