tst_QtJson: make invalidBinaryData() data-driven


This helps to see which file produces which errors, if any.

Also add a filter on *.bjson, so any garbage doesn't appear in the
data tags, sort by name to ensure stable data tag order, and filter on
Files to not have to do it manually at the QFileInfo level. With that,
we can also just use entryList() instead of entryInfoList().

Test-only, so picking to all branches, incl. ESM ones, as a help for
ourselves. There is no need to ship this.

Pick-to: 6.12 6.11 6.8 6.5 5.15
Change-Id: I43647f1f839031e23c4db3f7a2a11c7417e080d0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
commitce9ec430c7c7e6d3d3ad43657e35e55ce22db1e0
parent482980a8846df31df9598d04841d582a424e25f7
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeFri, 4 Sep 2026 18:43:04 +0000