]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: use condition argument in test definition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Jan 2021 11:20:03 +0000 (20:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Jan 2021 22:06:32 +0000 (07:06 +0900)
src/test/meson.build

index 6f74a4a7d4938b639adc218a43180b03ff0a8334..656a33de91ec7f3ae65a63fed3db81e1fec6b764 100644 (file)
@@ -545,21 +545,18 @@ tests += [
         [['src/test/test-qrcode-util.c'],
          [],
          [libdl]],
-]
 
-if conf.get('ENABLE_NSCD') == 1
-        tests += [
-                [['src/test/test-nscd-flush.c'],
-                 [libcore,
-                  libshared],
-                 [threads,
-                  librt,
-                  libseccomp,
-                  libselinux,
-                  libmount,
-                  libblkid],
-                 [], '', 'manual']]
-endif
+        [['src/test/test-nscd-flush.c'],
+         [libcore,
+          libshared],
+         [threads,
+          librt,
+          libseccomp,
+          libselinux,
+          libmount,
+          libblkid],
+         [], 'ENABLE_NSCD', 'manual'],
+]
 
 ############################################################