Remove 02492_clickhouse_local_context_uaf test

After some changes this test checks nothing (#69561), and now it is not
possible to write this test, since LocalServer::cleanup() waits for the
suggest thread, and so ClientBase destructor cannot be called earlier.

Fixes: https://github.com/ClickHouse/ClickHouse/issues/69561
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2024-10-04 12:21:24 +02:00
parent e53271ed2f
commit 8b43c10a75
2 changed files with 0 additions and 21 deletions

View File

@ -1,20 +0,0 @@
#!/usr/bin/env bash
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
# This is the regression test for clickhouse-local, that may use already freed
# context from the suggestion thread on error.
grep_options=(
-e ^$
-e 'Cannot create file: /no/such/directory'
-e 'Cannot load data for command line suggestions:'
-e 'ClickHouse local version'
-e 'Empty query'
)
ASAN_OPTIONS=$ASAN_OPTIONS:exitcode=3 $CLICKHOUSE_LOCAL --history_file /no/such/directory |& grep -v "${grep_options[@]}"
# on sanitizer error the code will be not 1, but 3
echo $?