Try calling getpid() from /usr/lib/libc.so instead of some other
random things.
diff --git a/Lib/test/test_dl.py b/Lib/test/test_dl.py
index e85bae9..029196d 100755
--- a/Lib/test/test_dl.py
+++ b/Lib/test/test_dl.py
@@ -7,10 +7,7 @@
 from test_support import verbose
 
 sharedlibs = [
-    # SunOS/Solaris
-    ('/usr/lib/libresolv.so', 'gethostent'),
-    # SGI IRIX
-    ('/usr/lib/libm.so', 'sin'),
+    ('/usr/lib/libc.so', 'getpid'),
     ]
 
 for s, func in sharedlibs: