dl: Add support for dlopen

Change-Id: I3fd109860a1eb0a945ddc3a0376ade248a4b2f75
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/meson.build b/test/meson.build
index b303032..7d26297 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -29,6 +29,16 @@
   'util/string',
 ]
 
+if has_dl
+  gtests += [
+    'dl',
+  ]
+elif build_tests.enabled()
+  error('Not testing libdl feature')
+else
+  warning('Not testing libdl feature')
+endif
+
 if has_fd
   gtests += [
     'fd/dupable',