Commit dac89688 authored by Chun-wei Fan's avatar Chun-wei Fan

gi-test: Fix gir file tests

Meson unfortunately does not normalize the paths for us, so we couldn't
just rely on it to give us the correct target name without the full
target path when the path separator is not '/' (such as on Visual Studio
builds, where the path separator is '\\' (with escape character).

This means that, that on Visual Studio builds, targetname would be:


instead of:


Since we have the targetbase variable which actually has the correct
info we need, use that to deduce the correct reference .gir file to
compare to.
parent 26f54248
Pipeline #79510 passed with stages
in 8 minutes and 41 seconds