Skip to content
Snippets Groups Projects
Commit bf4de6c4 authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Assert that ld.so gets overwritten

parent bf8396b5
No related branches found
No related tags found
No related merge requests found
......@@ -791,6 +791,28 @@ class TestContainers(BaseTest):
target = os.readlink(link)
self.assertEqual(target, '/run/host/usr/bin/localedef')
for ldso, scout_impl in (
(
'/lib/ld-linux.so.2',
'/lib/i386-linux-gnu/ld-2.15.so',
),
(
'/lib64/ld-linux-x86-64.so.2',
'/lib/x86_64-linux-gnu/ld-2.15.so',
),
):
try:
host_path = os.path.realpath(ldso)
except OSError:
pass
else:
link = os.path.join(tree, './' + ldso)
target = os.readlink(link)
self.assertEqual(target, '/run/host' + host_path)
link = os.path.join(tree, './' + scout_impl)
target = os.readlink(link)
self.assertEqual(target, '/run/host' + host_path)
def test_scout_sysroot(self) -> None:
scout = os.path.join(self.containers_dir, 'scout_sysroot')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment