OpenApiGen test: skip generator version comparison


The test does a line-by-line comparison of the generated files
with the desired reference.
However, for the common library the qoaicommonglobal.h header
contains several definitions that represent the generator version
used to generate the code.
Since the local version may be different from the version that was
used to create reference files, exclude these lines from
comparison in doCompare().
Since compareTwoFiles() does not only line-by-line comparison, but
also compares the entire byte arrays, we need to explicitly handle
the case of generator version mismatch in qoaicommonglobal.h there
as well and return early.

Amends 74d26749240fa1f910ee99069a5ad0756a7af3fa.

Pick-to: 6.12
Change-Id: Ice9ea3ecbcfb528b467a4b325e6bedfe72f77366
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commitea62b2035e8bc8238b19363f9da0e2f38173eb73
parentb856f36444dba5ff48a3e3a6c83c1b3c147ddc60
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 23 Jun 2026 12:14:48 +0000