tst_QRegExp: port from QString::asprintf() to QTest::addRow()


More efficient, easier on the eye, and doesn't fall prey to
QT_NO_CAST_FROM_BYTEARRAY.

Amends the start of the public history in qtbase.

Pick-to: 6.11 6.10 6.8
Task-number: QTBUG-133234
Change-Id: Id48d4fac08c1b31bd428a17d9896152e74371c14
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
commit9a1b7cae846a9bd710d404aebdb79119c9d8d399
parentafede8d815a68cdd15e02650ce9c563e8b29a4f8
authorMarc Mutz <marc.mutz@qt.io>
committerAhmad Samir <a.samirh78@gmail.com>
commit timeWed, 25 Mar 2026 09:55:16 +0000