Expect warnings written by tests


- tests that those warnings are actually written
- makes the tests' output more readable

This change only touches the trivial cases. In further tests, warnings
are only written for some of their input data so they'll need to be
separated.

Pick-to: 6.11 6.10
Change-Id: Ia4ca5555f9a61501fa1ca65cc99c94daa56b00ea
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
commit2aa6a423924dbcd51ad3e373962ccf8a41a33e2c
parent99babcbafcffd9eb6184f41164ae4a2baa50ef48
authorRobert Löhning <robert.loehning@qt.io>
committerRobert Löhning <robert.loehning@qt.io>
commit timeWed, 10 Dec 2025 08:51:14 +0000