unit-test: Use project defined b_lundef
The unit-test.py was setting b_lundef=false for address santinizer, and
setting b_lundef=true afterwards.
For a project generating shared library that invokes a function that is
implemented in other components, e.g. an OEM ipmi plugin, b_lundef=true
will cause the link failure with undefined reference.
For such projects, the meson.build will set b_lundef=false by default,
and the unit-test.py shall respect the project's setting or use the
default value, which is b_lundef=true.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I42a117819b18573dc47bfc4d807a65410bfbdde2
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index 0bfacbc..8583ae9 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -948,7 +948,7 @@
# check_call_cmd('meson', 'test', '-C', 'build'
# '--logbase', 'testlog-msan')
check_call_cmd('meson', 'configure', 'build',
- '-Db_sanitize=none', '-Db_lundef=true')
+ '-Db_sanitize=none')
else:
sys.stderr.write("###### Skipping sanitizers ######\n")