From 458e3b15b42782495a2083ebaa4ca7fd007a87c8 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Mon, 29 May 2023 23:44:11 -0300 Subject: [PATCH] test: update test-ns3.py to handle the mold linker --- utils/tests/test-ns3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/tests/test-ns3.py b/utils/tests/test-ns3.py index a0c2fc1a3..1349caa96 100755 --- a/utils/tests/test-ns3.py +++ b/utils/tests/test-ns3.py @@ -1387,10 +1387,10 @@ class NS3ConfigureTestCase(NS3BaseTestCase): self.assertIn("Invalid library name: %s" % invalid_or_nonexistent_library, stderr) elif invalid_or_nonexistent_library in ["gsd", "libfi", "calibre"]: self.assertEqual(return_code, 2) # should fail due to missing library - # GCC's LD says cannot find - # LLVM's LLD says unable to find if "lld" in stdout + stderr: self.assertIn("unable to find library -l%s" % invalid_or_nonexistent_library, stderr) + elif "mold" in stdout + stderr: + self.assertIn("library not found: %s" % invalid_or_nonexistent_library, stderr) else: self.assertIn("cannot find -l%s" % invalid_or_nonexistent_library, stderr) else: