2
Setup: libc.so.6 in this directory is a symlink to the following absolute path:
5
Test to make sure that calling readlink('libc.so.6') returns '/lib/libc.so.6'
9
Note that this requires some special handling in CDE's readlink handler,
10
since the version of the symlink within the package actually refers to
11
the following RELATIVE path:
13
./../../../../..//lib/libc.so.6
15
This is because the libc.so.6 file is actually located in:
17
cde-package/cde-root/home/pgbovine/CDE/tests/readlink_abspath_test/libc.so.6
19
within the package, so in order to reference the version of "/lib/libc.so.6"
20
WITHIN THE PACKAGE, the symlink is actually a relative link with the following
21
ugly prefix: ./../../../../../
27
assert os.path.islink('libc.so.6')
28
print os.readlink('libc.so.6')