diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py @@ -103,7 +103,7 @@ name = child.attrib.get("name") libraries_svr4_names.append(os.path.realpath(name)) for lib in self.get_expected_libs(): - self.assertIn(self.getBuildDir() + "/" + lib, libraries_svr4_names) + self.assertIn(os.path.realpath(self.getBuildDir() + "/" + lib), libraries_svr4_names) @llgs_test @skipUnlessPlatform(["linux", "android", "netbsd"])