qt5base-lts/tests/auto/testlib/selftests/expected_pairdiagnostics.tap
Marc Mutz eea930b4d7 QTest: fix -Wformat-overflow GCC warning
Says GCC:
    In function ‘char* QTest::toString(QPair<T1, T2>&) [with T1 = QWidget*; T2 = QEvent::Type]’,
       warning: ‘%s’ directive argument is null [-Wformat-overflow=]

Fix by re-using formatString(), once introduced for std::tuple.

As a side-effect, this gets rid of the funny double-quotes around the
output.

Change-Id: I2dd5f10fa2b3a392370bf487c1b7e98f3d190978
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-07-01 06:44:30 +02:00

33 lines
1013 B
Plaintext

TAP version 13
# tst_PairDiagnostics
ok 1 - initTestCase()
not ok 2 - testQPair()
---
type: QCOMPARE
message: Compared values are not the same
wanted: std::pair(1, 2) (pair2)
found: std::pair(1, 1) (pair1)
expected: std::pair(1, 2) (pair2)
actual: std::pair(1, 1) (pair1)
at: tst_PairDiagnostics::testQPair() (qtbase/tests/auto/testlib/selftests/pairdiagnostics/tst_pairdiagnostics.cpp:0)
file: qtbase/tests/auto/testlib/selftests/pairdiagnostics/tst_pairdiagnostics.cpp
line: 0
...
not ok 3 - testStdPair()
---
type: QCOMPARE
message: Compared values are not the same
wanted: std::pair(1, 2) (pair2)
found: std::pair(1, 1) (pair1)
expected: std::pair(1, 2) (pair2)
actual: std::pair(1, 1) (pair1)
at: tst_PairDiagnostics::testStdPair() (qtbase/tests/auto/testlib/selftests/pairdiagnostics/tst_pairdiagnostics.cpp:0)
file: qtbase/tests/auto/testlib/selftests/pairdiagnostics/tst_pairdiagnostics.cpp
line: 0
...
ok 4 - cleanupTestCase()
1..4
# tests 4
# pass 2
# fail 2