tree-wide: use new macro HAS_FEATURE_ADDRESS_SANITIZER everywhere
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
static uid_t test_uid = -1;
|
||||
static gid_t test_gid = -1;
|
||||
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
#if HAS_FEATURE_ADDRESS_SANITIZER
|
||||
/* Keep CAP_SYS_PTRACE when running under Address Sanitizer */
|
||||
static const uint64_t test_flags = UINT64_C(1) << CAP_SYS_PTRACE;
|
||||
#else
|
||||
|
||||
@@ -759,7 +759,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
test_setup_logging(LOG_DEBUG);
|
||||
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
#if HAS_FEATURE_ADDRESS_SANITIZER
|
||||
if (is_run_on_travis_ci()) {
|
||||
log_notice("Running on TravisCI under ASan, skipping, see https://github.com/systemd/systemd/issues/10696");
|
||||
return EXIT_TEST_SKIP;
|
||||
|
||||
@@ -19,7 +19,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
test_setup_logging(LOG_INFO);
|
||||
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
#if HAS_FEATURE_ADDRESS_SANITIZER
|
||||
return log_tests_skipped("address-sanitizer is enabled");
|
||||
#endif
|
||||
#if HAVE_VALGRIND_VALGRIND_H
|
||||
|
||||
Reference in New Issue
Block a user