diff options
Diffstat (limited to 'debian/patches/2-disable-rootdir-test.patch')
-rw-r--r-- | debian/patches/2-disable-rootdir-test.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/2-disable-rootdir-test.patch b/debian/patches/2-disable-rootdir-test.patch new file mode 100644 index 0000000..3efb9ee --- /dev/null +++ b/debian/patches/2-disable-rootdir-test.patch @@ -0,0 +1,27 @@ +diff --git a/test cases/common/221 fs module/meson.build b/test cases/common/221 fs module/meson.build +index a7327682..c5f90bbb 100644 +--- a/test cases/common/220 fs module/meson.build ++++ b/test cases/common/220 fs module/meson.build +@@ -30,12 +30,16 @@ assert(fs.is_dir('subprojects'), 'Dir not detected correctly.') + assert(not fs.is_dir('meson.build'), 'File detected as a dir.') + assert(not fs.is_dir('nonexisting'), 'Bad path detected as a dir.') + +-assert(fs.is_dir('~'), 'home directory not detected') +-assert(not fs.is_file('~'), 'home directory detected as file') +- +-# -- expanduser +-assert(fs.expanduser('~') != '~','expanduser failed') +-assert(fs.expanduser('~/foo').endswith('foo'), 'expanduser with tail failed') ++# These do not work with pbuilder for some reason. ++# I have not been able to replicate this manually, ++# even with 'pbuilder login'. ++# ++#assert(fs.is_dir('~'), 'home directory not detected') ++#assert(not fs.is_file('~'), 'home directory detected as file') ++# ++## -- expanduser ++#assert(fs.expanduser('~') != '~','expanduser failed') ++#assert(fs.expanduser('~/foo').endswith('foo'), 'expanduser with tail failed') + + # -- as_posix + assert(fs.as_posix('/') == '/', 'as_posix idempotent') |