diff options
author | Samuel Gaist <samuel.gaist@edeltech.ch> | 2017-12-07 09:46:30 +0100 |
---|---|---|
committer | Samuel Gaist <samuel.gaist@edeltech.ch> | 2018-06-03 20:26:38 +0000 |
commit | 04b180f7f25d73d002df31085cf1c352e075d4e5 (patch) | |
tree | 63b20b4fb53704192e231b1fa208885698066c23 /tests/auto/testlib/selftests/tst_selftests.cpp | |
parent | 9998654eacfa07a567e25ac5f2e557f61091145d (diff) |
Improve std::tuple handling in tests
Currently when doing comparison with std::tuple the fallback toString
method is called which returns a Q_NULLPTR thus not allowing proper
diagnostic of the values that triggered an error. This patch
adds support for std::tuple to improve the tests output readability.
[ChangeLog][QtTest][QCOMPARE] Now outputs contents of std::tuple on
failure.
Change-Id: I046a55e2ce44c3f7728d51e4745120d38aa5e007
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/testlib/selftests/tst_selftests.cpp')
-rw-r--r-- | tests/auto/testlib/selftests/tst_selftests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp index ac20b12433..c5f847562e 100644 --- a/tests/auto/testlib/selftests/tst_selftests.cpp +++ b/tests/auto/testlib/selftests/tst_selftests.cpp @@ -494,6 +494,7 @@ void tst_Selftests::runSubTest_data() << "sleep" << "strcmp" << "subtest" + << "tuplediagnostics" << "verbose1" << "verbose2" #ifndef QT_NO_EXCEPTIONS |