summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
authorClint Adams <clint@debian.org>2017-02-04 10:14:44 -0500
committerClint Adams <clint@debian.org>2017-02-04 10:29:57 -0500
commita2a4f555c44abda322dabcdf570401434caa52f2 (patch)
tree0ecaeee14d787bf89c309645f97dfa9b23be79ac /init.cfg
parent815ec1bf6545c1b2650a467af09b61213ef4895e (diff)
New upstream version 4.4
Diffstat (limited to 'init.cfg')
-rw-r--r--init.cfg9
1 files changed, 8 insertions, 1 deletions
diff --git a/init.cfg b/init.cfg
index 55aeed6..915a260 100644
--- a/init.cfg
+++ b/init.cfg
@@ -1,6 +1,6 @@
# This file is sourced by init.sh, *before* its initialization.
-# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+# Copyright (C) 2010-2017 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -23,10 +23,17 @@ stderr_fileno_=9
# which could happen if not installed,
# or hasn't support for the built architecture,
# or hasn't appropriate error suppressions installed etc.
+# or the program under test was compiled with address sanitizer.
require_valgrind_()
{
valgrind --error-exitcode=1 true 2>/dev/null ||
skip_ "requires a working valgrind"
+
+ # We cannot apply valgrind to an ASAN-enabled executable.
+ # An ASAN-enabled binary will print this on the first line of
+ # its help output: Available flags for AddressSanitizer:
+ ASAN_OPTIONS=help=1 sed qq 2>&1 | grep AddressSanitizer: \
+ && skip_ 'ASAN enabled binary cannot work with valgrind'
}
# Call this with a list of programs under test immediately after