summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2024-01-24 17:30:58 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-02-07 15:10:29 +0000
commit7ccd63fd895ae292dcde805c0cad38c734963c77 (patch)
tree1021ce9646b78d743d2801268f40023e50ae48e9 /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp
parent44dc38ebc9fa407565ec1699bdbb1f97ffd13f1c (diff)
QDataStream: use SizeLimitExceeded status in write operations
Set this status when the stream tries to write more data than the current serialization format supports. Update the methods that write containers to return early if they fail to write the container size, and do not try to serialize the elements. Convert the manual tst_manualqdatastream test into a data-driven test, allowing us to specify various stream versions. Adjust the test code to check that the SizeLimitExceeded status is set when the stream version is <= Qt_6_6. Amends fd48ce0b73c74dafd5db27bc1f2752ef665df7ef Found in 6.7 API review Change-Id: If4c62ea53ac9bccd423f00f0f03afd6ba6bdc4f5 Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit dd514160ce169734e23a146a2c115fed55a69260) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions