mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
Fix OOM in ASan stress test
This commit is contained in:
parent
884c2aa631
commit
c52ab89918
@ -3,6 +3,10 @@
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
# If we run sanitized binary under qemu, it will try to slowly allocate 20 TiB until OOM.
|
||||
# Don't even try to do that. This test should be disabled for sanitizer builds.
|
||||
${CLICKHOUSE_LOCAL} --query "SELECT max(value LIKE '%sanitize%') FROM system.build_options" | grep -q '1' && echo 'Skip test for sanitizer build' && exit
|
||||
|
||||
command=$(command -v ${CLICKHOUSE_LOCAL})
|
||||
|
||||
qemu-x86_64-static -cpu qemu64 $command --query "SELECT 1" 2>&1 | grep -v -F "warning: TCG doesn't support requested feature" ||:
|
||||
|
Loading…
Reference in New Issue
Block a user