unit-test: Set to none after sanitizer
The unit test contains a step to do sanitize test by
`-Db_sanitize=address,undefined`, and remove the config after it's done.
However, the meson generated `compile_commands.json` still contains the
`-fsanitize=address,undefined` compile option. If we run the unit test
again, it will cause valgrind test reporting error as below:
```
ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
```
To correctly disable sanitizer, `-Db_sanitize=none` is needed to
specifically tell meson to disable it.
Tested: Run sdbusplus's unit test twice without issue. Without this
change, the second run will get the above valgrind error.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Iebde8ce80b498a039de4f2713b5c16561ca63b09
1 file changed