diff --git a/src/test/modules/libpq_pipeline/meson.build b/src/test/modules/libpq_pipeline/meson.build
index d9f26f84f69..3fd70a04a38 100644
--- a/src/test/modules/libpq_pipeline/meson.build
+++ b/src/test/modules/libpq_pipeline/meson.build
@@ -27,5 +27,6 @@ tests += {
     'tests': [
       't/001_libpq_pipeline.pl',
     ],
+    'deps': [libpq_pipeline],
   },
 }