Limit test_arg to test code

Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I642d99db826262c31cc79d64d0e5a3e4ea46c2c8
diff --git a/analyzer/meson.build b/analyzer/meson.build
index 12f5100..7cee22e 100644
--- a/analyzer/meson.build
+++ b/analyzer/meson.build
@@ -31,7 +31,7 @@
     [ analyzer_src ],
     include_directories : incdir,
     dependencies : analyzer_deps,
-    cpp_args : [ package_args, test_arg ],
+    cpp_args : [ package_args ],
     install : false,
 )
 
diff --git a/attn/meson.build b/attn/meson.build
index 6ae7e58..616890f 100644
--- a/attn/meson.build
+++ b/attn/meson.build
@@ -69,6 +69,6 @@
     pel_src,
     include_directories : incdir,
     dependencies : attn_deps,
-    cpp_args : [boost_args, test_arg],
+    cpp_args : [boost_args],
     install : false,
 )
diff --git a/meson.build b/meson.build
index 6ebf954..15673ad 100644
--- a/meson.build
+++ b/meson.build
@@ -70,16 +70,6 @@
   libphal_dep = cmplr.find_library('phal')
 endif
 
-# See if phosphor-logging is available, if not use test case logging code.
-h = 'phosphor-logging/log.hpp'
-if cmplr.compiles('#include <@0@>'.format(h), name : '#include <@0@>'.format(h))
-    test_arg = []
-else
-    test_arg = [
-        '-DTEST_TRACE',
-    ]
-endif
-
 pthread = declare_dependency(link_args : '-pthread')
 lrt = declare_dependency(link_args : '-lrt')
 
@@ -140,7 +130,6 @@
                           plugins_src ],
               dependencies : [lrt, pthread, libhei_dep],
               link_with : hwdiags_libs,
-              cpp_args : test_arg,
               install : true)
 endif
 
diff --git a/util/meson.build b/util/meson.build
index b832ba4..7eb6d91 100644
--- a/util/meson.build
+++ b/util/meson.build
@@ -26,7 +26,7 @@
     util_src,
     include_directories : incdir,
     dependencies : util_deps,
-    cpp_args : [ package_args, test_arg ],
+    cpp_args : [ package_args ],
     install : false,
 )