Skip to content
  • Chun-wei Fan's avatar
    gi-test: Fix gir file tests · dac89688
    Chun-wei Fan authored
    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:
    
    D:\\gi.build\\tests\\scanner\\Typedefs-1.0.gir
    
    instead of:
    
    Typedefs-1.0.gir
    
    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.
    dac89688