def test_pkgconfig_uninstalled_env_added(self):
        '''
        Checks that the meson-uninstalled dir is added to PKG_CONFIG_PATH
        '''
        testdir = os.path.join(self.unit_test_dir, '111 pkgconfig duplicate path entries')
        meson_uninstalled_dir = os.path.join(self.builddir, 'meson-uninstalled')

        env = get_fake_env(testdir, self.builddir, self.prefix)

        newEnv = PkgConfigInterface.setup_env({}, env, MachineChoice.HOST, uninstalled=True)

        pkg_config_path_dirs = newEnv['PKG_CONFIG_PATH'].split(os.pathsep)

        self.assertEqual(len(pkg_config_path_dirs), 1)
        self.assertEqual(pkg_config_path_dirs[0], meson_uninstalled_dir)

        Checks that the meson-uninstalled dir is added to PKG_CONFIG_PATH
        
unittests/linuxliketests.py