diff --git a/tests/unit/meson.build b/tests/unit/meson.build
index acac3622edcb4c7f679446fc442cb8daa03bbc77..90acf5b0da5bf8306bc22ea77d5da707d61351ad 100644
--- a/tests/unit/meson.build
+++ b/tests/unit/meson.build
@@ -112,7 +112,7 @@ if have_block
   if nettle.found() or gcrypt.found()
     tests += {'test-crypto-pbkdf': [io]}
   endif
-  if 'CONFIG_EPOLL_CREATE1' in config_host
+  if config_host_data.get('CONFIG_EPOLL_CREATE1')
     tests += {'test-fdmon-epoll': [testblock]}
   endif
 endif