mirror of
https://github.com/systemd/systemd.git
synced 2026-08-06 16:10:59 +00:00
tree-wide: use new macro HAS_FEATURE_ADDRESS_SANITIZER everywhere
This commit is contained in:
@@ -319,7 +319,7 @@ uint32_t jenkins_hashlittle( const void *key, size_t length, uint32_t initval)
|
||||
* still catch it and complain. The masking trick does make the hash
|
||||
* noticeably faster for short strings (like English words).
|
||||
*/
|
||||
#if !VALGRIND && !defined(__SANITIZE_ADDRESS__)
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
|
||||
switch(length)
|
||||
{
|
||||
@@ -504,7 +504,7 @@ void jenkins_hashlittle2(
|
||||
* still catch it and complain. The masking trick does make the hash
|
||||
* noticeably faster for short strings (like English words).
|
||||
*/
|
||||
#if !VALGRIND && !defined(__SANITIZE_ADDRESS__)
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
|
||||
switch(length)
|
||||
{
|
||||
@@ -680,7 +680,7 @@ uint32_t jenkins_hashbig( const void *key, size_t length, uint32_t initval)
|
||||
* still catch it and complain. The masking trick does make the hash
|
||||
* noticeably faster for short strings (like English words).
|
||||
*/
|
||||
#if !VALGRIND && !defined(__SANITIZE_ADDRESS__)
|
||||
#if !VALGRIND && !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
|
||||
switch(length)
|
||||
{
|
||||
|
||||
@@ -202,7 +202,7 @@ int main(int argc, char *argv[]) {
|
||||
log_info("message size = %zu, contents =\n%s", sz, h);
|
||||
|
||||
#if HAVE_GLIB
|
||||
#ifndef __SANITIZE_ADDRESS__
|
||||
#if !HAS_FEATURE_ADDRESS_SANITIZER
|
||||
{
|
||||
GDBusMessage *g;
|
||||
char *p;
|
||||
|
||||
@@ -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