Blob Blame History Raw
From 74d8da24a9f412bd546f6cf84dd4f5ebe340aeea Mon Sep 17 00:00:00 2001
From: Lisandro Dalcin <dalcinl@gmail.com>
Date: Mon, 19 Oct 2015 18:42:41 +0300
Subject: [PATCH] test: libm.so could be a GNU linker script (Issue #28)

---
 test/test_dl.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/test_dl.py b/test/test_dl.py
index a3211a3..53b9f36 100644
--- a/test/test_dl.py
+++ b/test/test_dl.py
@@ -15,6 +15,9 @@ class TestDL(unittest.TestCase):
             libm = 'libm.so'
 
         handle = dl.dlopen(libm, dl.RTLD_LOCAL|dl.RTLD_LAZY)
+        if handle == 0 and sys.platform.startswith('linux'):
+            self.assertTrue(dl.dlerror() is not None)
+            handle = dl.dlopen('libm.so.6', dl.RTLD_LOCAL|dl.RTLD_LAZY)
         self.assertTrue(handle != 0)
         self.assertTrue(dl.dlerror() is None)
 
-- 
2.1.1