diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-07-19 12:39:03 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-07-19 18:55:51 +0200 |
commit | 7a4bf7bd05b34056ce2c583b441ede74d17e2640 (patch) | |
tree | e7528edf02f64bd9aa608f9a2ae49fd691423ae9 | |
parent | a87411cefae1214aca370bd73c2000c309496fb5 (diff) |
Rename QVector benchmark and its main.cpp for consistency
The usual pattern (at least in corelib) is tst_bench_[lowercased
class-name] for the test and the same with .cpp for the source-file
name. So s/(main|tst_bench_vector)/tst_bench_qvector/g
Change-Id: Ic9bd3ac87adfaec189409c2259cc674ebcec602c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r-- | tests/benchmarks/corelib/tools/qvector/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/benchmarks/corelib/tools/qvector/tst_bench_qvector.cpp (renamed from tests/benchmarks/corelib/tools/qvector/main.cpp) | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/benchmarks/corelib/tools/qvector/CMakeLists.txt b/tests/benchmarks/corelib/tools/qvector/CMakeLists.txt index 467405eea0..37510cce42 100644 --- a/tests/benchmarks/corelib/tools/qvector/CMakeLists.txt +++ b/tests/benchmarks/corelib/tools/qvector/CMakeLists.txt @@ -1,12 +1,12 @@ # Generated from qvector.pro. ##################################################################### -## tst_bench_vector Binary: +## tst_bench_qvector Binary: ##################################################################### -qt_internal_add_benchmark(tst_bench_vector +qt_internal_add_benchmark(tst_bench_qvector SOURCES - main.cpp + tst_bench_qvector.cpp outofline.cpp INCLUDE_DIRECTORIES . diff --git a/tests/benchmarks/corelib/tools/qvector/main.cpp b/tests/benchmarks/corelib/tools/qvector/tst_bench_qvector.cpp index 150f448493..1c43836cb9 100644 --- a/tests/benchmarks/corelib/tools/qvector/main.cpp +++ b/tests/benchmarks/corelib/tools/qvector/tst_bench_qvector.cpp @@ -250,4 +250,4 @@ void tst_QVector::mixedvector_fill_and_return() QTEST_MAIN(tst_QVector) -#include "main.moc" +#include "tst_bench_qvector.moc" |