--- testsuite/dlopen-test.c	2016-10-01 09:28:38.000000000 +0200
+++ testsuite/dlopen-test.c	2017-09-01 11:53:06.767831729 +0200
@@ -9,7 +9,7 @@
 main (int argc UNUSED, char **argv UNUSED)
 {
 #if HAVE_LIBDL
-  void *handle = dlopen ("../libnettle.so", RTLD_NOW);
+  void *handle = dlopen ("../libnettle.dylib", RTLD_NOW);
   int (*get_version)(void);
   if (!handle)
     {
