Skip to content
Snippets Groups Projects
Commit 32defcb5 authored by Florian Fischer's avatar Florian Fischer
Browse files

[tests] don't undef NDEBUG for test executables

The explicit -UNDEBUG was introduced in the CMake to meson migration (62900cd1)
but as far as I can tell it was not present in the CMake tests definition.

It makes tests less reliable because it enables only some debug messages but not
all.
For example if emper is build with NDEBUG a test using a Semaphore
will output debug messages from the Semaphore but not from the Runtime.
parent 7c907119
No related branches found
No related tags found
No related merge requests found
Pipeline #52175 passed
......@@ -31,7 +31,6 @@ tests = {
},
}
undef_ndebug = '-UNDEBUG'
test_dep = [thread_dep]
test_env = environment(
{
......@@ -53,8 +52,6 @@ foreach source, test_dict : tests
test_exe = executable(test_name,
source,
include_directories: emper_all_include,
c_args: undef_ndebug,
cpp_args: undef_ndebug,
dependencies: test_dep,
link_with: [emper, emper_c],
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment