Debian Codegraph @

debian/patches/2-disable-rootdir-test.patch

raw
1 Description: Disable rootdir tests.
2
3 diff --git a/test cases/common/221 fs module/meson.build b/test cases/common/221 fs module/meson.build
4 index a7327682..c5f90bbb 100644
5 --- a/test cases/common/220 fs module/meson.build
6 +++ b/test cases/common/220 fs module/meson.build
7 @@ -30,12 +30,16 @@ assert(fs.is_dir('subprojects'), 'Dir not detected correctly.')
8 assert(not fs.is_dir('meson.build'), 'File detected as a dir.')
9 assert(not fs.is_dir('nonexisting'), 'Bad path detected as a dir.')
10
11 -assert(fs.is_dir('~'), 'home directory not detected')
12 -assert(not fs.is_file('~'), 'home directory detected as file')
13 -
14 -# -- expanduser
15 -assert(fs.expanduser('~') != '~','expanduser failed')
16 -assert(fs.expanduser('~/foo').endswith('foo'), 'expanduser with tail failed')
17 +# These do not work with pbuilder for some reason.
18 +# I have not been able to replicate this manually,
19 +# even with 'pbuilder login'.
20 +#
21 +#assert(fs.is_dir('~'), 'home directory not detected')
22 +#assert(not fs.is_file('~'), 'home directory detected as file')
23 +#
24 +## -- expanduser
25 +#assert(fs.expanduser('~') != '~','expanduser failed')
26 +#assert(fs.expanduser('~/foo').endswith('foo'), 'expanduser with tail failed')
27
28 # -- as_posix
29 assert(fs.as_posix('/') == '/', 'as_posix idempotent')