From 32cb6de93f4939d935fbe92fbd402e9a9776374e Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Wed, 8 Jul 2020 17:15:38 +0100
Subject: [PATCH] tests: Run s-r-s-i on host with LD_BIND_NOW=1

If we allow lazy binding, we can succeed in loading a GIO module from
the host (which depends on a newer GObject than the one bundled with
pressure-vessel), then find that a symbol reference fails at the time
that we try to actually use it. Make it fail early, instead.

In particular, this is helpful on SteamOS 2 'brewmaster'.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/containers.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/containers.py b/tests/containers.py
index a82b1c94f..b033fddf8 100755
--- a/tests/containers.py
+++ b/tests/containers.py
@@ -264,6 +264,8 @@ class TestContainers(BaseTest):
             ) as writer:
                 run_subprocess(
                     [
+                        'env',
+                        'LD_BIND_NOW=1',
                         host_srsi,
                         '--verbose',
                     ],
-- 
GitLab