diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-09-21 15:38:16 -0700 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2016-09-24 21:04:31 +0000 |
commit | 17546ad88378fbeaad25e571e0fa35e7a5bfa622 (patch) | |
tree | 8ec6e26fd8d5a5002513fe2e27428911139d1810 /tools/test-captures.sh | |
parent | 8b047554ee93fbbf7731da371df0779acc9fc87a (diff) |
Check for ASAN when fuzzing.
Try to determine if we passed -fsanitize=address to gcc or clang and
adjust the ASAN variable fuzz-test.sh, randpkt-test.sh and
test-captures.sh accordingly.
Change-Id: I88a34828fb5875e1a74a3b180ffb3da37daac0bd
Reviewed-on: https://code.wireshark.org/review/17848
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'tools/test-captures.sh')
-rwxr-xr-x | tools/test-captures.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test-captures.sh b/tools/test-captures.sh index ab82c1c96e..6cbb208665 100755 --- a/tools/test-captures.sh +++ b/tools/test-captures.sh @@ -31,9 +31,9 @@ TEST_TYPE="manual" . `dirname $0`/test-common.sh || exit 1 # Run under AddressSanitizer ? -ASAN=0 +ASAN=$CONFIGURED_WITH_ASAN -while getopts "a:b:" OPTCHAR ; do +while getopts "ab:" OPTCHAR ; do case $OPTCHAR in a) ASAN=1 ;; b) WIRESHARK_BIN_DIR=$OPTARG ;; |