mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
log: make assert_return() critical when -Dmode=developer
Triggering assert_return() should be a bug in general, and we should really fix that. But, previously, it is hard to notice such bug, as it was not critical. This is for making CI or our testing environment fail if we unexpectedly trigger assert_return(). So, hopefully we can easily find such bugs.
This commit is contained in:
parent
8161f6086e
commit
fce9e8a168
@ -69,7 +69,7 @@ static bool upgrade_syslog_to_journal = false;
|
||||
static bool always_reopen_console = false;
|
||||
static bool open_when_needed = false;
|
||||
static bool prohibit_ipc = false;
|
||||
static bool assert_return_is_critical = false;
|
||||
static bool assert_return_is_critical = BUILD_MODE_DEVELOPER;
|
||||
|
||||
/* Akin to glibc's __abort_msg; which is private and we hence cannot
|
||||
* use here. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user